2015-01-22 17:18:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
2015-01-23 16:28:37 +01:00
|
|
|
namespace Wallabag\CoreBundle\DependencyInjection;
|
2015-01-22 17:18:56 +01:00
|
|
|
|
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
|
|
|
|
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
|
|
|
|
use Symfony\Component\Config\FileLocator;
|
|
|
|
|
|
2015-01-23 16:28:37 +01:00
|
|
|
class WallabagCoreExtension extends Extension
|
2015-01-22 17:18:56 +01:00
|
|
|
{
|
|
|
|
|
public function load(array $configs, ContainerBuilder $container)
|
|
|
|
|
{
|
|
|
|
|
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
|
|
|
|
$loader->load('services.xml');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getAlias()
|
|
|
|
|
{
|
2015-01-23 16:28:37 +01:00
|
|
|
return 'wallabag_core';
|
2015-01-22 17:18:56 +01:00
|
|
|
}
|
|
|
|
|
}
|