NovikovViktor/SFTPBundle

View on GitHub
DependencyInjection/NWSFTPExtension.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace NW\SFTPBundle\DependencyInjection;

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

/**
 * Class NWSFTPExtension
 * @package NW\SFTPBundle\DependencyInjection
 * @author Novikov Viktor
 */
class NWSFTPExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
        $loader->load('services.xml');
    }
}