PHP 클래스 Neos\Flow\Command\RoutingCommandController

상속: extends Neos\Flow\Cli\CommandController
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$configurationManager Neos\Flow\Configuration\ConfigurationManager
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$router Neos\Flow\Mvc\Routing\Router

공개 메소드들

메소드 설명
getPathCommand ( string $package, string $controller = 'Standard', string $action = 'index', string $format = 'html' ) : void Generate a route path
listCommand ( ) : void List the known routes
routePathCommand ( string $path, string $method = 'GET' ) : void Route the given route path
showCommand ( integer $index ) : void Show information for a route

보호된 메소드들

메소드 설명
getControllerObjectName ( string $packageKey, string $subPackageKey, string $controllerName ) : string Returns the object name of the controller defined by the package, subpackage key and controller name

메소드 상세

getControllerObjectName() 보호된 메소드

Returns the object name of the controller defined by the package, subpackage key and controller name
protected getControllerObjectName ( string $packageKey, string $subPackageKey, string $controllerName ) : string
$packageKey string the package key of the controller
$subPackageKey string the subpackage key of the controller
$controllerName string the controller name excluding the "Controller" suffix
리턴 string The controller's Object Name or NULL if the controller does not exist

getPathCommand() 공개 메소드

This command takes package, controller and action and displays the generated route path and the selected route: ./flow routing:getPath --format json Acme.Demo\\Sub\\Package
public getPathCommand ( string $package, string $controller = 'Standard', string $action = 'index', string $format = 'html' ) : void
$package string Package key and subpackage, subpackage parts are separated with backslashes
$controller string Controller name, default is 'Standard'
$action string Action name, default is 'index'
$format string Requested Format name default is 'html'
리턴 void

listCommand() 공개 메소드

This command displays a list of all currently registered routes.
public listCommand ( ) : void
리턴 void

routePathCommand() 공개 메소드

This command takes a given path and displays the detected route and the selected package, controller and action.
public routePathCommand ( string $path, string $method = 'GET' ) : void
$path string The route path to resolve
$method string The request method (GET, POST, PUT, DELETE, ...) to simulate
리턴 void

showCommand() 공개 메소드

This command displays the configuration of a route specified by index number.
public showCommand ( integer $index ) : void
$index integer The index of the route as given by routing:list
리턴 void

프로퍼티 상세

$configurationManager 보호되어 있는 프로퍼티

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
리턴 Neos\Flow\Configuration\ConfigurationManager

$objectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$router 보호되어 있는 프로퍼티

protected Router,Neos\Flow\Mvc\Routing $router
리턴 Neos\Flow\Mvc\Routing\Router