Add AppBundle and the YouTube and Vimeo Twig functions
This commit is contained in:
parent
2f7d9de95b
commit
3cb4e74448
11 changed files with 134 additions and 5 deletions
20
src/AppBundle/DependencyInjection/AppExtension.php
Normal file
20
src/AppBundle/DependencyInjection/AppExtension.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace AppBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
|
||||
class AppExtension extends Extension
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../config'));
|
||||
$loader->load('services.yml');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue