PHP 클래스 Symfony\Component\HttpKernel\Controller\ControllerResolver

This implementation uses the '_controller' request attribute to determine the controller to execute and uses the request attributes to determine the controller method arguments.
저자: Fabien Potencier ([email protected])
상속: implements Symfony\Component\HttpKernel\Controller\ControllerResolverInterface
파일 보기 프로젝트 열기: symfony/symfony 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Psr\Log\LoggerInterface $logger = null ) Constructor.
getArguments ( Request $request, $controller )
getController ( Request $request )

보호된 메소드들

메소드 설명
createController ( string $controller ) : callable Returns a callable for the given controller.
doGetArguments ( Request $request, callable $controller, array $parameters ) : array
instantiateController ( string $class ) : object Returns an instantiated controller.

비공개 메소드들

메소드 설명
getControllerError ( $callable )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Psr\Log\LoggerInterface $logger = null )
$logger Psr\Log\LoggerInterface A LoggerInterface instance

createController() 보호된 메소드

Returns a callable for the given controller.
protected createController ( string $controller ) : callable
$controller string A Controller string
리턴 callable A PHP callable

doGetArguments() 보호된 메소드

사용 중단: This method is deprecated as of 3.1 and will be removed in 4.0. Implement the ArgumentResolverInterface and inject it in the HttpKernel instead.
protected doGetArguments ( Request $request, callable $controller, array $parameters ) : array
$request Symfony\Component\HttpFoundation\Request
$controller callable
$parameters array
리턴 array The arguments to use when calling the action

getArguments() 공개 메소드

사용 중단: This method is deprecated as of 3.1 and will be removed in 4.0. Implement the ArgumentResolverInterface and inject it in the HttpKernel instead.
public getArguments ( Request $request, $controller )
$request Symfony\Component\HttpFoundation\Request

getController() 공개 메소드

This method looks for a '_controller' request attribute that represents the controller name (a string like ClassName::MethodName).
public getController ( Request $request )
$request Symfony\Component\HttpFoundation\Request

instantiateController() 보호된 메소드

Returns an instantiated controller.
protected instantiateController ( string $class ) : object
$class string A class name
리턴 object