ObjectRouteLoader
abstract class ObjectRouteLoader extends Loader
A route loader that calls a method on an object to load the routes.
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
object
getServiceObject(string $id)
Returns the object that the method will be called on to load routes.
load(mixed $resource, string|null $type = null)
Calls the service that will load the routes.
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.