for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Smart\AuthenticationBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Config\FileLocator;
/**
* @author Mathieu Ducrot <[email protected]>
*/
class SmartAuthenticationExtension extends Extension implements PrependExtensionInterface
{
public function load(array $configs, ContainerBuilder $container)
$loader = new XmlFileLoader(
$container,
new FileLocator(__DIR__.'/../Resources/config')
);
$loader->load('admin_extension.xml');
}
public function prepend(ContainerBuilder $container)
$loader = new YamlFileLoader(
$loader->load('config.yml');