aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php
blob: 6dfcc8229ce8858845de3b184f1e20881bb9d354 (plain) (tree)




















                                                                                                 
<?php

namespace Acme\DemoBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;

class AcmeDemoExtension 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 'acme_demo';
    }
}