This class represents every route added to the router
Phalcon\Cli\Router\Route constructor
Replaces placeholders from pattern returning a valid PCRE regular expression
Extracts parameters from a string
Reconfigure the route adding a new pattern and a set of paths
Returns the route’s name
Sets the route’s name
$router->add( "/about", [ "controller" => "about", ] )->setName("about");
Sets a callback that is called if the route is matched. The developer can implement any arbitrary conditions here If the callback returns false the route is treated as not matched
Returns the ‘before match’ callback if any
Returns the route’s id
Returns the route’s pattern
Returns the route’s compiled pattern
Returns the paths
Returns the paths using positions as keys and names as values
Adds a converter to perform an additional transformation for certain parameter
Returns the router converter
Resets the internal route id generator
Set the routing delimiter
Get routing delimiter
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Cli_Router_Route.html