mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Update index.md
This commit is contained in:
parent
3f3580f9c3
commit
59ea615b7b
@ -10,12 +10,13 @@ Installation
|
||||
|
||||
Add this bundle to your `composer.json` file:
|
||||
|
||||
{
|
||||
``` 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()
|
||||
{
|
||||
``` php
|
||||
// app/AppKernel.php
|
||||
public function registerBundles()
|
||||
{
|
||||
return array(
|
||||
// ...
|
||||
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
|
||||
);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Import the routing definition in `routing.yml`:
|
||||
```yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user