piotrkreft /
eager-resettable-services-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace PK\EagerResettableServicesBundle\DependencyInjection; |
||
| 6 | |||
| 7 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
| 8 | use Symfony\Component\DependencyInjection\Extension\Extension; |
||
| 9 | |||
| 10 | class PKEagerResettableServicesExtension extends Extension |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | public function load(array $configs, ContainerBuilder $container): void |
||
| 16 | { |
||
| 17 | $configuration = $this->getConfiguration($configs, $container); |
||
| 18 | $config = $this->processConfiguration($configuration, $configs); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 19 | |||
| 20 | $container->setParameter('pk_eager_resettable_services.services', $config['services']); |
||
| 21 | $container->setParameter('pk_eager_resettable_services.all_services', $config['all_services']); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |