rector/vendor/symfony/dependency-injection/Compiler/ExtensionCompilerPass.php
Tomas Votruba 8ef1dfb7af Updated Rector to commit ed8191fb64939954cb7352265ca5a09b809fca44
ed8191fb64 [Docs] Fixes rector_rules_overview.md docs link in each rules (#92)
2021-05-23 09:33:26 +00:00

35 lines
1.1 KiB
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix20210523\Symfony\Component\DependencyInjection\Compiler;
use RectorPrefix20210523\Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* A pass to automatically process extensions if they implement
* CompilerPassInterface.
*
* @author Wouter J <wouter@wouterj.nl>
*/
class ExtensionCompilerPass implements \RectorPrefix20210523\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(\RectorPrefix20210523\Symfony\Component\DependencyInjection\ContainerBuilder $container)
{
foreach ($container->getExtensions() as $extension) {
if (!$extension instanceof \RectorPrefix20210523\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface) {
continue;
}
$extension->process($container);
}
}
}