4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Controller;
14 use Symfony\Component\HttpFoundation\Request;
15 use Symfony\Component\Stopwatch\Stopwatch;
18 * @author Fabien Potencier <fabien@symfony.com>
20 class TraceableArgumentResolver implements ArgumentResolverInterface
25 public function __construct(ArgumentResolverInterface $resolver, Stopwatch $stopwatch)
27 $this->resolver = $resolver;
28 $this->stopwatch = $stopwatch;
34 public function getArguments(Request $request, $controller)
36 $e = $this->stopwatch->start('controller.get_arguments');
38 $ret = $this->resolver->getArguments($request, $controller);