Phalcon Router should be done with DI

$di->set('router', function() {

    $router = new \Phalcon\Mvc\Router();

    $router->add("/login", array(       
        'controller' => 'login',
        'action' => 'index',
    ));

    $router->add("/products/:action", array(        
        'controller' => 'products',
        'action' => 1,
    ));

    return $router;
});

Source: php – How router/roites could be injected in application in phalcon framework? – Stack Overflow