mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Update README
This commit is contained in:
parent
c4911f57d2
commit
da12c85ddc
@ -8,15 +8,20 @@ The **NelmioApiDocBundle** bundle allows you to generate a decent documentation
|
|||||||
|
|
||||||
## Installation ##
|
## Installation ##
|
||||||
|
|
||||||
|
|
||||||
|
This bundle uses
|
||||||
|
[KnpMarkdownBundle](https://github.com/KnpLabs/KnpMarkdownBundle).
|
||||||
|
|
||||||
Register the namespace in `app/autoload.php`:
|
Register the namespace in `app/autoload.php`:
|
||||||
|
|
||||||
// app/autoload.php
|
// app/autoload.php
|
||||||
$loader->registerNamespaces(array(
|
$loader->registerNamespaces(array(
|
||||||
// ...
|
// ...
|
||||||
'Nelmio' => __DIR__.'/../vendor/bundles',
|
'Nelmio' => __DIR__.'/../vendor/bundles',
|
||||||
|
'Knp' => __DIR__.'/../vendor/bundles',
|
||||||
));
|
));
|
||||||
|
|
||||||
Register the bundle in `app/AppKernel.php`:
|
Register the bundles in `app/AppKernel.php`:
|
||||||
|
|
||||||
// app/AppKernel.php
|
// app/AppKernel.php
|
||||||
public function registerBundles()
|
public function registerBundles()
|
||||||
@ -24,6 +29,7 @@ Register the bundle in `app/AppKernel.php`:
|
|||||||
return array(
|
return array(
|
||||||
// ...
|
// ...
|
||||||
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
|
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
|
||||||
|
new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user