/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Console/ArgumentResolver/TraceableArgumentResolver.php
38 строк
1012 B
Robin Chalas
[Console][WebProfilerBundle] Trace value resolvers in profiler
23 фев 2026, 19:59
Не верифицирован
23 фев 2026, 19:59
85f8372
Код
Авторство
О чём код?
<?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\Console\ArgumentResolver; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Stopwatch\Stopwatch; /** * @author Robin Chalas <robin.chalas@gmail.com> */ class TraceableArgumentResolver implements ArgumentResolverInterface { public function __construct( private ArgumentResolverInterface $resolver, private Stopwatch $stopwatch, ) { } public function getArguments(InputInterface $input, callable $command, ?\ReflectionFunctionAbstract $reflector = null): array { $e = $this->stopwatch->start('command.get_arguments'); try { return $this->resolver->getArguments($input, $command, $reflector); } finally { $e->stop(); } } }