class ClosureLoader extendsLoader

ClosureLoader loads routes from a PHP closure.

The Closure must return a RouteCollection instance.

Methods

RouteCollection
load(mixed$closure,string$type =null)

Loads a Closure.

bool
supports(mixed$resource,string$type =null)

No description

Details

RouteCollection load(mixed$closure,string$type =null)

Loads a Closure.

Parameters

mixed $closure
string $type

Return Value

RouteCollection

bool supports(mixed$resource,string$type =null)

Parameters

mixed $resource
string $type

Return Value

bool