/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Workflow/DependencyInjection/WorkflowDebugPass.php
40 строк
1 KB
Nicolas Grekas
Merge branch '6.4' into 7.4
23 фев 2026, 01:01
23 фев 2026, 01:01
792ac6d
Код
Авторство
О чём код?
<?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 Symfony\Component\Workflow\DependencyInjection; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\Workflow\Debug\TraceableWorkflow; /** * Adds all configured security voters to the access decision manager. * * @author Grégoire Pineau <lyrixx@lyrixx.info> */ class WorkflowDebugPass implements CompilerPassInterface { public function process(ContainerBuilder $container): void { foreach ($container->findTaggedServiceIds('workflow') as $id => $attributes) { $container->register("debug.{$id}", TraceableWorkflow::class) ->setDecoratedService($id) ->setArguments([ new Reference("debug.{$id}.inner"), new Reference('debug.stopwatch'), new Reference('profiler.is_disabled_state_checker', ContainerBuilder::IGNORE_ON_INVALID_REFERENCE), ]) ->addTag('kernel.reset', ['method' => 'reset']) ; } } }