From 05ba73cd64451a0116f18ad7d3f5ab1871f1408b Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Tue, 16 Jul 2019 12:19:13 +0200 Subject: [PATCH] dev push --- BillingBundle/DependencyInjection/BillingExtension.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/BillingBundle/DependencyInjection/BillingExtension.php b/BillingBundle/DependencyInjection/BillingExtension.php index cd25825..9d351f3 100644 --- a/BillingBundle/DependencyInjection/BillingExtension.php +++ b/BillingBundle/DependencyInjection/BillingExtension.php @@ -4,22 +4,19 @@ namespace Bluesquare\BillingBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\Extension; -use Symfony\Component\Routing\Loader\YamlFileLoader; +use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; 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') - ); + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yaml'); + $configuration = new Configuration(); + $this->addAnnotatedClassesToCompile([ 'Bluesquare\\BillingBundle\\Controller\\' ]);