PHP Class ManaPHP\Cli\Router

Inheritance: extends ManaPHP\Component, implements ManaPHP\Cli\RouterInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_actionName string
$_commandAliases array
$_controllerName string
$_guessCommand boolean

Méthodes publiques

Méthode Description
getActionName ( ) : string
getControllerName ( ) : string
route ( string $cmd ) : boolean
setAlias ( string $alias, string $command ) : static

Méthodes protégées

Méthode Description
_getCommands ( string $controller ) : array
_getControllers ( ) : array

Method Details

_getCommands() protected méthode

protected _getCommands ( string $controller ) : array
$controller string
Résultat array

_getControllers() protected méthode

protected _getControllers ( ) : array
Résultat array

getActionName() public méthode

public getActionName ( ) : string
Résultat string

getControllerName() public méthode

public getControllerName ( ) : string
Résultat string

route() public méthode

public route ( string $cmd ) : boolean
$cmd string
Résultat boolean

setAlias() public méthode

public setAlias ( string $alias, string $command ) : static
$alias string
$command string
Résultat static

Property Details

$_actionName protected_oe property

protected string $_actionName
Résultat string

$_commandAliases protected_oe property

protected array $_commandAliases
Résultat array

$_controllerName protected_oe property

protected string $_controllerName
Résultat string

$_guessCommand protected_oe property

protected bool $_guessCommand
Résultat boolean