Merge pull request #518 from AveVlad/patch-1

Add highlight index.md
This commit is contained in:
William Durand 2014-09-22 10:19:00 +02:00
commit 6bcd5e8d81

View File

@ -10,12 +10,13 @@ Installation
Add this bundle to your `composer.json` file:
{
"require": {
"nelmio/api-doc-bundle": "@stable"
}
``` php
{
"require": {
"nelmio/api-doc-bundle": "@stable"
}
}
```
**Protip:** you should browse the
[`nelmio/api-doc-bundle`](https://packagist.org/packages/nelmio/api-doc-bundle)
@ -23,14 +24,16 @@ page to choose a stable version to use, avoid the `@stable` meta constraint.
Register the bundle in `app/AppKernel.php`:
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
);
}
``` php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
);
}
```
Import the routing definition in `routing.yml`:
```yaml