2019-07-16 11:58:38 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Bluesquare\BillingBundle\DependencyInjection;
|
|
|
|
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
use Symfony\Component\DependencyInjection\Extension\Extension;
|
2019-07-16 12:19:13 +02:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
2019-07-16 12:12:58 +02:00
|
|
|
use Symfony\Component\Config\FileLocator;
|
2019-07-16 11:58:38 +02:00
|
|
|
|
|
|
|
class BillingExtension extends Extension
|
|
|
|
{
|
|
|
|
public function load(array $configs, ContainerBuilder $container)
|
|
|
|
{
|
2019-07-16 12:19:13 +02:00
|
|
|
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
2019-07-16 12:12:58 +02:00
|
|
|
|
2019-07-16 11:58:38 +02:00
|
|
|
$loader->load('services.yaml');
|
|
|
|
|
2019-07-16 12:19:13 +02:00
|
|
|
$configuration = new Configuration();
|
|
|
|
|
2019-07-16 11:58:38 +02:00
|
|
|
$config = $this->processConfiguration($configuration, $configs);
|
2019-07-16 12:25:49 +02:00
|
|
|
|
|
|
|
return $config;
|
2019-07-16 11:58:38 +02:00
|
|
|
}
|
2019-07-18 12:25:12 +02:00
|
|
|
|
|
|
|
public function getAlias()
|
|
|
|
{
|
|
|
|
return 'bluesquare.billing_bundle';
|
|
|
|
}
|
2019-07-16 11:58:38 +02:00
|
|
|
}
|