| 1 | <?php |
||
| 24 | class LoopBackApiExtension extends Extension |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function load(array $configs, ContainerBuilder $container) |
||
| 30 | { |
||
| 31 | $configuration = new Configuration(); |
||
| 32 | $config = $this->processConfiguration($configuration, $configs); |
||
| 33 | |||
| 34 | foreach ($config['parameters'] as $key => $value) { |
||
| 35 | $container->setParameter(sprintf('%s.parameter.%s', $this->getAlias(), $key), $value); |
||
| 36 | } |
||
| 37 | |||
| 38 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 39 | $loader->load('services.xml'); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getAlias() |
||
| 49 | } |
||
| 50 |