CLI\Router

Class Phalcon\CLI\Router

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();

Methods

public __construct ()

Phalcon\CLI\Router constructor

public setDI (Phalcon\