2016-12-29 12:09:26 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
|
|
*
|
|
|
|
* (c) Nelmio
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Nelmio\ApiDocBundle;
|
|
|
|
|
|
|
|
use Nelmio\ApiDocBundle\DependencyInjection\Compiler\AddDescribersPass;
|
2017-01-14 17:36:56 +01:00
|
|
|
use Nelmio\ApiDocBundle\DependencyInjection\Compiler\AddModelDescribersPass;
|
2016-12-29 12:09:26 +01:00
|
|
|
use Nelmio\ApiDocBundle\DependencyInjection\Compiler\AddRouteDescribersPass;
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
|
|
|
|
final class NelmioApiDocBundle extends Bundle
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function build(ContainerBuilder $container)
|
|
|
|
{
|
|
|
|
$container->addCompilerPass(new AddDescribersPass());
|
2017-01-14 17:36:56 +01:00
|
|
|
$container->addCompilerPass(new AddModelDescribersPass());
|
2016-12-29 12:09:26 +01:00
|
|
|
$container->addCompilerPass(new AddRouteDescribersPass());
|
|
|
|
}
|
|
|
|
}
|