* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Controller; use Symfony\Component\Stopwatch\Stopwatch; use Symfony\Component\HttpFoundation\Request; /** * @author Fabien Potencier */ class TraceableControllerResolver implements ControllerResolverInterface, ArgumentResolverInterface { private $resolver; private $stopwatch; private $argumentResolver; public function __construct(ControllerResolverInterface $resolver, Stopwatch $stopwatch, ArgumentResolverInterface $argumentResolver = null) { $this->resolver = $resolver; $this->stopwatch = $stopwatch; $this->argumentResolver = $argumentResolver; // BC if (null === $this->argumentResolver) { $this->argumentResolver = $resolver; } if (!$this->argumentResolver instanceof TraceableArgumentResolver) { $this->argumentResolver = new TraceableArgumentResolver($this->argumentResolver, $this->stopwatch); } } /** * {@inheritdoc} */ public function getController(Request $request) { $e = $this->stopwatch->start('controller.get_callable'); $ret = $this->resolver->getController($request); $e->stop(); return $ret; } /** * {@inheritdoc} * * @deprecated This method is deprecated as of 3.1 and will be removed in 4.0. */ public function getArguments(Request $request, $controller) { @trigger_error(sprintf('The %s method is deprecated as of 3.1 and will be removed in 4.0. Please use the %s instead.', __METHOD__, TraceableArgumentResolver::class), E_USER_DEPRECATED); $ret = $this->argumentResolver->getArguments($request, $controller); return $ret; } } __halt_compiler();----SIGNATURE:----rLVHFK4ka5avanjAcKnuOQvtvfcXjLLVIw8GwsW+6gJg4irulOr1c56xXtn+OHKm37mD5TpkdHwAFO50QCGjwo/DEzQIimI7f3tREIT/0UPZ6aeeNzwqYSs4odyau6OreSWrwSrGbLuSmHMEmLZInHQd4+1uvZLsQDtgT7MDb0GKPZ5w/csOlOptimsGeWOFvSr+hAtDM+hTnZiHBT644CUDuZC6+LRH4telxIgVHdPN8TGZPRFrif0Xw4eQ/jBSC7cIkYUlgbNjW8IdiyaUfSH19iDLPgKtxXmvVdMDiA3vJqQlCF+xiSeE3/xm+1r1su9c0iBmgR0PGm+WIBwZTPJNQGzW42TgM8yxCRGiflf5ayTADJwidil/g2Jg6fgZYO8MZuHmT0umhD0ouHu717MiAInApe/SV6PHqG/zzqp5jV68PWCpTUalvkpQIW3px/Jipy+znqvzqAIobLrH3/PoUMndvo8q1yWw5F8l0LyhVfjptGxgbxbzmQzv3JMBbzkv8h6fio64TARkVueQyjeK5L6fEpWIsbpGzFDsE01C8eJC3gr7gZ9d4NMlVl/xvVltlQE5JOgq2HvvtYzjh+iWeo2HGIvhDG8VqJr+MKUZ66iK5SXAvhB+bNHm3ZnNimTkGy6AYSMj2SEou3ozl9KrVVmUnR50RiaAx0TPqj4=----ATTACHMENT:----MzU2OTU2NTM3MzIwMzcyMSAxNjkzNTEzMzI4OTQ3MDAgODE5NTkwNTg1MDI0Njc1OQ==