public function generate($controllerName, $action)
    {
        $this->route = new CallbackRoute();
        $this->route->addPossibilities(array($controllerName, $action));
        return array($this, "run");
    }
public function generate($controllerName, $action)
    {
        $this->route = new CallbackRoute();
        $this->route->addPossibilities(array($controllerName, $action));
        return array($this, "run");
    }
public function generate ( $ controllerName , $ action ) { $ this -> route = new CallbackRoute ( ) ; $ this -> route -> addPossibilities ( array ( $ controllerName , $ action ) ) ; return array ( $ this , "run" ) ; }
Generates a new dynamic route that can be passed as
a callable object.
@param  string $controllerName
@param  string $action
@return array                 A callable array
Generates a new dynamic route that can be passed as a callable object .