aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/WallabagBundle/DependencyInjection/WallabagExtension.php
blob: cfdb21fc8cd8871d5ce5765db8fd62a3f202224b (plain) (tree)





















                                                                                                 
<?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';
    }
}