abstractclass ObjectLoader extendsLoader

A route loader that calls a method on an object to load the routes.

Methods

object
getObject(string$id)

Returns the object that the method will be called on to load routes.

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

Calls the object method that will load the routes.

Details

abstractprotectedobject getObject(string$id)

Returns the object that the method will be called on to load routes.

For example, if your application uses a service container, the $id may be a service id.

Parameters

string $id

Return Value

object

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

Calls the object method that will load the routes.

Parameters

mixed $resource
string $type

Return Value

RouteCollection