| @@ 15-31 (lines=17) @@ | ||
| 12 | * |
|
| 13 | * @link http://symfony.com/doc/current/cookbook/bundles/extension.html |
|
| 14 | */ |
|
| 15 | class StarkerxpCampaignExtension extends Extension |
|
| 16 | { |
|
| 17 | /** |
|
| 18 | * {@inheritdoc} |
|
| 19 | */ |
|
| 20 | public function load(array $configs, ContainerBuilder $container) |
|
| 21 | { |
|
| 22 | $configuration = new Configuration(); |
|
| 23 | $this->processConfiguration($configuration, $configs); |
|
| 24 | ||
| 25 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | $loader->load('services.yml'); |
|
| 27 | $loader->load('managers.yml'); |
|
| 28 | $loader->load('renders.yml'); |
|
| 29 | $loader->load('api.yml'); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 15-30 (lines=16) @@ | ||
| 12 | * |
|
| 13 | * @link http://symfony.com/doc/current/cookbook/bundles/extension.html |
|
| 14 | */ |
|
| 15 | class StarkerxpLeadExtension extends Extension |
|
| 16 | { |
|
| 17 | /** |
|
| 18 | * {@inheritdoc} |
|
| 19 | */ |
|
| 20 | public function load(array $configs, ContainerBuilder $container) |
|
| 21 | { |
|
| 22 | $configuration = new Configuration(); |
|
| 23 | $this->processConfiguration($configuration, $configs); |
|
| 24 | ||
| 25 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | $loader->load('services.yml'); |
|
| 27 | $loader->load('managers.yml'); |
|
| 28 | $loader->load('validators.yml'); |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||