Route / RouteEntryLoader
im\route\RouteEntryLoader
An extended provider that is able to custom load a controller
There may be cases where customizations are required when loading a controller. This interface will allow the router to call upon this method and request a controller while allowing customizations to be made.
interface RouteEntryLoader implements im\route\RouteEntryProvider, Traversable, IteratorAggregate {
// Methods
loadController(mixed $entryId): im\route\Controller|callable
// Inherited Methods
getIterator(): Traversable
}
Name | Description |
---|---|
RouteEntryLoader :: loadController | Load an return a controller |
RouteEntryLoader :: getIterator | Returns an iterator with RouteEntry objects |