for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Visithor package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Feel free to edit as you please, and have fun.
* @author Marc Morera <[email protected]>
*/
namespace Visithor\Bundle\Tests\FakeBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
/**
* Class FakeExtension
class FakeExtension extends Extension
{
* Loads a specific configuration.
* @param array $config An array of configuration values
* @param ContainerBuilder $container A ContainerBuilder instance
* @throws \InvalidArgumentException When provided tag is not defined in this extension
* @api
public function load(array $config, ContainerBuilder $container)
$loader = new YamlFileLoader(
$container, new
FileLocator(__DIR__ . '/../Resources/config')
);
$loader->load('environment.yml');
}
* @return string
public function getAlias()
return 'fake';