PHP Класс Neos\Flow\Command\RoutingCommandController

Наследование: extends Neos\Flow\Cli\CommandController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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