mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Update README
This commit is contained in:
parent
48d46d67eb
commit
ff817a567c
15
README.md
15
README.md
@ -11,16 +11,15 @@ For Symfony 2.0.x, you need to use the 1.* version of the bundle.
|
|||||||
|
|
||||||
## Installation ##
|
## Installation ##
|
||||||
|
|
||||||
|
Add this bundle to your `composer.json` file:
|
||||||
|
|
||||||
Register the namespace in `app/autoload.php`:
|
{
|
||||||
|
"require": {
|
||||||
|
"nelmio/api-doc-bundle": "dev-master"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// app/autoload.php
|
Register the bundle in `app/AppKernel.php`:
|
||||||
$loader->registerNamespaces(array(
|
|
||||||
// ...
|
|
||||||
'Nelmio' => __DIR__.'/../vendor/bundles',
|
|
||||||
));
|
|
||||||
|
|
||||||
Register the bundles in `app/AppKernel.php`:
|
|
||||||
|
|
||||||
// app/AppKernel.php
|
// app/AppKernel.php
|
||||||
public function registerBundles()
|
public function registerBundles()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user