Snaju Inception Docs

RouteManager
in package

Table of Contents

$lastMatchedRoutePart  : string|null
$loaders  : array<string|int, mixed>
$tree  : RouteTree
addLoader()  : mixed
attachRouteFile()  : mixed
findRoute()  : mixed
getTree()  : RouteTree
init()  : mixed
initTree()  : mixed
register()  : mixed

Properties

$lastMatchedRoutePart

public static string|null $lastMatchedRoutePart

$loaders

private static array<string|int, mixed> $loaders = []

Methods

attachRouteFile()

public static attachRouteFile(string $path, callable $func) : mixed
Parameters
$path : string
$func : callable
Return values
mixed

findRoute()

public static findRoute(mixed $path) : mixed
Parameters
$path : mixed
Return values
mixed

getTree()

public static getTree() : RouteTree
Return values
RouteTree

init()

public static init() : mixed
Return values
mixed

initTree()

public static initTree() : mixed
Return values
mixed

register()

public static register(Route $route) : mixed
Parameters
$route : Route
Return values
mixed

Search results