for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BrainExe\Core\DependencyInjection\CompilerPass;
use BrainExe\Core\Annotations\CompilerPass;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @CompilerPass(type="beforeRemoving")
*/
class RemoveAliases implements CompilerPassInterface
{
* {@inheritdoc}
public function process(ContainerBuilder $container)
foreach ($container->getAliases() as $key => $value) {
$container->removeAlias($value);
$container->removeAlias($key);
}