Update README

This commit is contained in:
William DURAND 2012-07-13 16:06:01 +02:00
parent c4911f57d2
commit da12c85ddc

View File

@ -8,15 +8,20 @@ The **NelmioApiDocBundle** bundle allows you to generate a decent documentation
## Installation ##
This bundle uses
[KnpMarkdownBundle](https://github.com/KnpLabs/KnpMarkdownBundle).
Register the namespace in `app/autoload.php`:
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'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
public function registerBundles()
@ -24,6 +29,7 @@ Register the bundle in `app/AppKernel.php`:
return array(
// ...
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
);
}