interface LoaderInterface

LoaderInterface is the interface implemented by all loader classes.

Methods

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

Loads a resource.

bool
supports(mixed$resource,string$type =null)

Returns whether this class supports the given resource.

LoaderResolverInterface
getResolver()

Gets the loader resolver.

void
setResolver(LoaderResolverInterface$resolver)

Sets the loader resolver.

Details

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

Loads a resource.

Parameters

mixed $resource
string $type

Return Value

mixed

Exceptions

Exception If something went wrong

bool supports(mixed$resource,string$type =null)

Returns whether this class supports the given resource.

Parameters

mixed $resource
string $type

Return Value

bool

LoaderResolverInterface getResolver()

Gets the loader resolver.

Return Value

LoaderResolverInterface

void setResolver(LoaderResolverInterface$resolver)

Sets the loader resolver.

Parameters

LoaderResolverInterface $resolver

Return Value

void