class StaticPrefixCollection

Prefix tree of routes preserving routes order.

Methods

__construct(string $prefix = '/')

No description

string
getPrefix()

No description

array
getRoutes()

No description

addRoute(string $prefix, $route)

Adds a route to a group.

populateCollection(RouteCollection $routes)

Linearizes back a set of nested routes into a collection.

static 
handleError($type, $msg)

No description

Details

__construct(string $prefix = '/')

Parameters

string $prefix

string getPrefix()

Return Value

string

array getRoutes()

Return Value

array

addRoute(string $prefix, $route)

Adds a route to a group.

Parameters

string $prefix
$route

RouteCollection populateCollection(RouteCollection $routes)

Linearizes back a set of nested routes into a collection.

Parameters

RouteCollection $routes

Return Value

RouteCollection

static handleError($type, $msg)

Parameters

$type
$msg