Update index.md

This commit is contained in:
Vlad 2014-09-21 05:04:16 +04:00
parent 3f3580f9c3
commit 59ea615b7b

View File

@ -10,12 +10,13 @@ Installation
Add this bundle to your `composer.json` file: Add this bundle to your `composer.json` file:
{ ``` php
{
"require": { "require": {
"nelmio/api-doc-bundle": "@stable" "nelmio/api-doc-bundle": "@stable"
} }
} }
```
**Protip:** you should browse the **Protip:** you should browse the
[`nelmio/api-doc-bundle`](https://packagist.org/packages/nelmio/api-doc-bundle) [`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`: Register the bundle in `app/AppKernel.php`:
// app/AppKernel.php ``` php
public function registerBundles() // app/AppKernel.php
{ public function registerBundles()
{
return array( return array(
// ... // ...
new Nelmio\ApiDocBundle\NelmioApiDocBundle(), new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
); );
} }
```
Import the routing definition in `routing.yml`: Import the routing definition in `routing.yml`:
```yaml ```yaml