mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
40 lines
1001 B
PHP
40 lines
1001 B
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* This file is part of the ApiDocBundle package.
|
||
|
*
|
||
|
* (c) EXSyst
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace EXSyst\Bundle\ApiDocBundle\DependencyInjection;
|
||
|
|
||
|
use Symfony\Component\Config\FileLocator;
|
||
|
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||
|
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
||
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||
|
|
||
|
class EXSystApiDocExtension extends Extension
|
||
|
{
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function getAlias()
|
||
|
{
|
||
|
return 'exsyst_api_doc';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function load(array $configs, ContainerBuilder $container)
|
||
|
{
|
||
|
$config = $this->processConfiguration(new Configuration(), $configs);
|
||
|
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||
|
|
||
|
$loader->load('services.xml');
|
||
|
}
|
||
|
}
|