MuzichAdminExtension.php 881B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Muzich\AdminBundle\DependencyInjection;
  3. use Symfony\Component\DependencyInjection\ContainerBuilder;
  4. use Symfony\Component\Config\FileLocator;
  5. use Symfony\Component\HttpKernel\DependencyInjection\Extension;
  6. use Symfony\Component\DependencyInjection\Loader;
  7. /**
  8. * This is the class that loads and manages your bundle configuration
  9. *
  10. * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
  11. */
  12. class MuzichAdminExtension extends Extension
  13. {
  14. /**
  15. * {@inheritDoc}
  16. */
  17. public function load(array $configs, ContainerBuilder $container)
  18. {
  19. $configuration = new Configuration();
  20. $config = $this->processConfiguration($configuration, $configs);
  21. $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
  22. $loader->load('services.yml');
  23. }
  24. }