Darken\Service\RouteService

class

Methods

Method Details

public __construct (Darken\Config\ConfigInterface $config) RouteService.php#18
$config Darken\Config\ConfigInterface
public string url (string $class, array $params, string $method) RouteService.php#32

Build a URL path for a compiled page class.

$class string
$params array
$method string
Return string
public false|array findRouteNode (string $url) RouteService.php#93

Optional forward-matcher (kept public if you use it elsewhere). Returns [node, params] or false if not found.

$url string
Return false|array
public void setTrieForTesting (array $trie) RouteService.php#209

Set the trie directly for testing purposes

$trie array
Return void