Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 947 Bytes

route-RouteEntryLoader.md

File metadata and controls

29 lines (23 loc) · 947 Bytes

Route / RouteEntryLoader

im\route\RouteEntryLoader


Description

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.

Synopsis

interface RouteEntryLoader implements im\route\RouteEntryProvider, Traversable, IteratorAggregate {

    // Methods
    loadController(mixed $entryId): im\route\Controller|callable

    // Inherited Methods
    getIterator(): Traversable
}

Methods

Name Description
RouteEntryLoader :: loadController Load an return a controller
RouteEntryLoader :: getIterator Returns an iterator with RouteEntry objects