FileAccess Orion

ControllerResolver extends ContainerControllerResolver
in package

A controller resolver searching for a controller in a psr-11 container when using the "service:method" notation.

Tags
author

Fabien Potencier fabien@symfony.com

final

since Symfony 4.4

Table of Contents

$container  : mixed
$parser  : mixed
$logger  : mixed
__construct()  : mixed
getController()  : callable|false
Returns the Controller instance associated with a Request.
createController()  : callable
Returns a callable for the given controller.
instantiateController()  : object
Returns an instantiated controller.
configureController()  : mixed
getClassMethodsWithoutMagicMethods()  : array<string|int, mixed>
getControllerError()  : string
throwExceptionIfControllerWasRemoved()  : mixed

Properties

Methods

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

createController()

Returns a callable for the given controller.

protected createController(mixed $controller) : callable
Parameters
$controller : mixed

A Controller string

Return values
callable

A PHP callable

instantiateController()

Returns an instantiated controller.

protected instantiateController(mixed $class) : object
Parameters
$class : mixed

A class name

Return values
object

configureController()

private configureController(mixed $controller, string $class) : mixed
Parameters
$controller : mixed
$class : string
Return values
mixed

getClassMethodsWithoutMagicMethods()

private getClassMethodsWithoutMagicMethods(mixed $classOrObject) : array<string|int, mixed>
Parameters
$classOrObject : mixed
Return values
array<string|int, mixed>

getControllerError()

private getControllerError(mixed $callable) : string
Parameters
$callable : mixed
Return values
string

throwExceptionIfControllerWasRemoved()

private throwExceptionIfControllerWasRemoved(string $controller, Throwable $previous) : mixed
Parameters
$controller : string
$previous : Throwable
Return values
mixed

Search results