Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

LcSovExtension.php 1.3KB

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 5 mēnešiem
1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Lc\SovBundle\DependencyInjection;
  3. use Symfony\Component\Config\FileLocator;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Symfony\Component\DependencyInjection\Extension\Extension;
  6. use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
  7. use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
  8. class LcSovExtension extends Extension implements PrependExtensionInterface
  9. {
  10. public function load(array $configs, ContainerBuilder $container)
  11. {
  12. $configuration = new Configuration();
  13. $config = $this->processConfiguration($configuration, $configs);
  14. foreach ($config as $parameter => $value) {
  15. $container->setParameter(sprintf('lc_sov.%s', $parameter), $value);
  16. }
  17. $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
  18. $loader->load('services.yaml');
  19. }
  20. public function prepend(ContainerBuilder $container)
  21. {
  22. $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/packages'));
  23. /*$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/easy_admin'));
  24. $loader->load('base.yaml');
  25. $loader->load('entities/merchant.yaml');*/
  26. }
  27. }