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;
|
|
|
|
|
2017-12-19 20:35:10 +01:00
|
|
|
use Nelmio\ApiDocBundle\DependencyInjection\Compiler\ConfigurationPass;
|
2018-01-05 13:08:02 +01:00
|
|
|
use Nelmio\ApiDocBundle\DependencyInjection\Compiler\TagDescribersPass;
|
2016-12-29 12:09:26 +01:00
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
|
|
|
|
final class NelmioApiDocBundle extends Bundle
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function build(ContainerBuilder $container)
|
|
|
|
{
|
2017-12-19 20:35:10 +01:00
|
|
|
$container->addCompilerPass(new ConfigurationPass());
|
2018-01-05 13:08:02 +01:00
|
|
|
$container->addCompilerPass(new TagDescribersPass());
|
2016-12-29 12:09:26 +01:00
|
|
|
}
|
|
|
|
}
|