Documentation

TraceableControllerResolver
in package
implements ControllerResolverInterface, ArgumentResolverInterface

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes and Traits

ControllerResolverInterface
A ControllerResolverInterface implementation knows how to determine the controller to execute based on a Request object.
ArgumentResolverInterface
An ArgumentResolverInterface instance knows how to determine the arguments for a specific action.

Table of Contents

$argumentResolver  : mixed
$resolver  : mixed
$stopwatch  : mixed
__construct()  : mixed
getArguments()  : array<string|int, mixed>
Returns the arguments to pass to the controller.
getController()  : callable|false
Returns the Controller instance associated with a Request.

Properties

Methods

getArguments()

Returns the arguments to pass to the controller.

public getArguments(Request $request, mixed $controller) : array<string|int, mixed>
Parameters
$request : Request

A Request instance

$controller : mixed

A PHP callable

Tags
deprecated

This method is deprecated as of 3.1 and will be removed in 4.0.

Return values
array<string|int, mixed>

An array of arguments to pass to the controller

getController()

Returns the Controller instance associated with a Request.

public getController(Request $request) : callable|false
Parameters
$request : Request
Return values
callable|false

A PHP callable representing the Controller, or false if this resolver is not able to determine the controller

Search results