Cli\Router\Route::getBeforeMatch

public mixed getBeforeMatch () Returns the ‘before match’ callback if any

Cli\Router\Route::extractNamedParams

public array | boolean extractNamedParams (string $pattern) Extracts parameters from a string

Cli\Router\Route::delimiter

public static delimiter ([mixed $delimiter]) Set the routing delimiter

Cli\Router\Route::DEFAULT_DELIMITER

string DEFAULT_DELIMITER

Cli\Router\Route::convert

public Phalcon\Cli\Router\Route convert (string $name, callable $converter) Adds a converter to perform an additional transformation for certain parameter

Cli\Router\Route::compilePattern

public compilePattern (mixed $pattern) Replaces placeholders from pattern returning a valid PCRE regular expression

Cli\Router\Route::beforeMatch

public Phalcon\Cli\Router\Route beforeMatch (callback $callback) 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

Cli\Router\Route

Source on GitHub This class represents every route added to the router Constants string DEFAULT_DELIMITER Methods public __construct (string $pattern, [array $paths]) Phalcon\Cli\Router\Route constructor public compilePattern (mixed $pattern) Replaces placeholders from pattern returning a valid PCRE regular expression public array | boolean extractNamedParams (string $pattern) Extracts parameters from a string public reConfigure (string $pattern, [array $paths]) Reconfigure the route adding a

Cli\Router\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Cli\RouterInterface::wasMatched

abstract public wasMatched () ...