|
123456789101112131415161718192021222324252627282930313233 |
- <?php
-
- namespace Lc\PietroBundle\DependencyInjection;
-
- use Symfony\Component\Config\FileLocator;
- use Symfony\Component\DependencyInjection\ContainerBuilder;
- use Symfony\Component\DependencyInjection\Extension\Extension;
- use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
- use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
-
- class LcPietroExtension extends Extension implements PrependExtensionInterface
- {
-
- public function load(array $configs, ContainerBuilder $container)
- {
- $configuration = new Configuration();
- $config = $this->processConfiguration($configuration, $configs);
-
- foreach ($config as $parameter => $value) {
- $container->setParameter(sprintf('lc_pietro.%s', $parameter), $value);
- }
-
- $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
- $loader->load('services.yaml');
- }
-
- public function prepend(ContainerBuilder $container)
- {
- /*$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/easy_admin'));
- $loader->load('base.yaml');
- $loader->load('entities/merchant.yaml');*/
- }
- }
|