symfony-billing/BillingBundle/DependencyInjection/BillingExtension.php

30 lines
818 B
PHP
Raw Normal View History

<?php
namespace Bluesquare\BillingBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
2019-07-16 12:00:43 +02:00
use Symfony\Component\Routing\Loader\YamlFileLoader;
2019-07-16 12:12:58 +02:00
use Symfony\Component\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')
);
2019-07-16 12:12:58 +02:00
$loader->load('services.yaml');
$this->addAnnotatedClassesToCompile([
'Bluesquare\\BillingBundle\\Controller\\'
]);
$config = $this->processConfiguration($configuration, $configs);
}
}