Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class AlisterReservedNamesExtension extends Extension |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | public function load(array $configs, ContainerBuilder $container) |
||
20 | { |
||
21 | $configuration = new Configuration(); |
||
22 | $config = $this->processConfiguration($configuration, $configs); |
||
23 | |||
24 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
25 | $loader->load('services.yml'); |
||
26 | |||
27 | $container->setParameter( |
||
28 | $this->getAlias().'.names', |
||
29 | $this->collectAllNames($config['names']) |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | public function collectAllNames($appNames = []) |
||
42 | } |
||
43 | } |
||
44 |