29 lines
828 B
PHP
29 lines
828 B
PHP
<?php
|
|
|
|
namespace Bluesquare\BillingBundle\DependencyInjection;
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Extension\Extension;
|
|
use Symfony\Component\Routing\Loader\YamlFileLoader;
|
|
use Symfony\Component\HttpKernel\Config\FileLocator;
|
|
|
|
class BillingExtension extends Extension
|
|
{
|
|
public function load(array $configs, ContainerBuilder $container)
|
|
{
|
|
$configuration = new Configuration();
|
|
|
|
$loader = new YamlFileLoader(
|
|
$container,
|
|
new FileLocator(__DIR__.'/../Resources/config')
|
|
);
|
|
$loader->load('services.yaml');
|
|
|
|
$this->addAnnotatedClassesToCompile([
|
|
'Bluesquare\\BillingBundle\\Controller\\'
|
|
]);
|
|
|
|
$config = $this->processConfiguration($configuration, $configs);
|
|
}
|
|
}
|