Для ресурсов добавлены версии по содержимому

This commit is contained in:
2019-01-06 22:11:25 +03:00
parent f131f53ea7
commit d1b9124405
12 changed files with 92 additions and 11 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace Homepage\TwigExtensionBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
class TwigExtensionExtension extends Extension
{
/**
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container)
{
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
}
}