AjglBreakpointTwigExtensionExtension.php 887 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * AJGL Breakpoint Twig Extension Component
  4. *
  5. * Copyright (C) Antonio J. García Lagar <aj@garcialagar.es>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Ajgl\Twig\Extension\SymfonyBundle\DependencyInjection;
  11. use Symfony\Component\Config\FileLocator;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\DependencyInjection\Loader;
  14. use Symfony\Component\HttpKernel\DependencyInjection\Extension;
  15. /**
  16. * @author Antonio J. García Lagar <aj@garcialagar.es>
  17. */
  18. class AjglBreakpointTwigExtensionExtension extends Extension
  19. {
  20. public function load(array $config, ContainerBuilder $container)
  21. {
  22. $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
  23. $loader->load('twig.xml');
  24. }
  25. }