LoaderResolverInterface

interface LoaderResolverInterface

LoaderResolverInterface selects a loader for a given resource.

Methods

LoaderInterface|false 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
doc_Symfony
2016-10-28 06:22:48
Comments
Leave a Comment

Please login to continue.