ClosureLoader
class ClosureLoader extends Loader
ClosureLoader loads routes from a PHP closure.
The Closure must return a RouteCollection instance.
Properties
protected | $resolver | from Loader |
Methods
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
from Loader
bool
supports(mixed $resource, string|null $type = null)
Returns whether this class supports the given resource.
Details
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.