interface LoaderResolverInterface

LoaderResolverInterface selects a loader for a given resource.

Methods

resolve(mixed $resource, string|null $type = null)

Returns a loader able to load the resource.

Details

LoaderInterface|false resolve(mixed $resource, string|null $type = null)

Returns a loader able to load the resource.

Parameters

mixed $resource A resource
string|null $type The resource type or null if unknown

Return Value

LoaderInterface|false The loader or false if none is able to load the resource