namespace Symfony\Component\HttpKernel\Controller;
-use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\Stopwatch\Stopwatch;
/**
- * TraceableControllerResolver.
- *
* @author Fabien Potencier <fabien@symfony.com>
*/
class TraceableControllerResolver implements ControllerResolverInterface, ArgumentResolverInterface
private $stopwatch;
private $argumentResolver;
- /**
- * Constructor.
- *
- * @param ControllerResolverInterface $resolver A ControllerResolverInterface instance
- * @param Stopwatch $stopwatch A Stopwatch instance
- * @param ArgumentResolverInterface $argumentResolver Only required for BC
- */
public function __construct(ControllerResolverInterface $resolver, Stopwatch $stopwatch, ArgumentResolverInterface $argumentResolver = null)
{
$this->resolver = $resolver;
*/
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);
+ @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);