implements Phalcon\DI\InjectionAwareInterface
Phalcon\CLI\Router is the standard framework router. Routing is the process of taking a command-line arguments and decomposing it into parameters to determine which module, task, and action of that task should receive the request
$router = new Phalcon\CLI\Router(); $router->handle(array( 'module' => 'main', 'task' => 'videos', 'action' => 'process' )); echo $router->getTaskName();
Phalcon\CLI\Router constructor
Sets the dependency injector
Returns the internal dependency injector
Sets the name of the default module
Sets the default controller name
Sets the default action name
Handles routing information received from command-line arguments
Returns proccesed module name
Returns proccesed task name
Returns proccesed action name
Returns proccesed extra params
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_CLI_Router.html