30 lines
887 B
PHP
30 lines
887 B
PHP
<?php
|
|
|
|
/*
|
|
* AJGL Breakpoint Twig Extension Component
|
|
*
|
|
* Copyright (C) Antonio J. García Lagar <aj@garcialagar.es>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Ajgl\Twig\Extension\SymfonyBundle\DependencyInjection;
|
|
|
|
use Symfony\Component\Config\FileLocator;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Loader;
|
|
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
|
|
|
/**
|
|
* @author Antonio J. García Lagar <aj@garcialagar.es>
|
|
*/
|
|
class AjglBreakpointTwigExtensionExtension extends Extension
|
|
{
|
|
public function load(array $config, ContainerBuilder $container)
|
|
{
|
|
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
|
$loader->load('twig.xml');
|
|
}
|
|
}
|