3 namespace Rapsys\AirBundle\DependencyInjection
;
5 use Symfony\Component\DependencyInjection\ContainerBuilder
;
6 use Symfony\Component\DependencyInjection\Extension\Extension
;
9 * This is the class that loads and manages your bundle configuration.
11 * @link http://symfony.com/doc/current/cookbook/bundles/extension.html
13 class RapsysAirExtension
extends Extension
{
17 public function load(array $configs, ContainerBuilder
$container) {
19 $configuration = $this->getConfiguration($configs, $container);
21 //Process the configuration to get merged config
22 $config = $this->processConfiguration($configuration, $configs);
24 //Detect when no user configuration is provided
25 if ($configs === [[]]) {
26 //Prepend default config
27 $container->prependExtensionConfig($this->getAlias(), $config);
30 //Save configuration in parameters
31 $container->setParameter($this->getAlias(), $config);
37 public function getAlias() {