migrating legacy to symfony

This commit is contained in:
Nicolas Lœuillet
2015-01-22 17:18:56 +01:00
parent 2b9fe72b39
commit 9d50517cea
31 changed files with 1825 additions and 20 deletions

View File

@ -0,0 +1,22 @@
<?php
namespace WallabagBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;
class WallabagExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');
}
public function getAlias()
{
return 'wallabag';
}
}