LoaderInterface

LoaderInterface

interface LoaderInterface

LoaderInterface is the interface implemented by all loader classes.

Methods

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

Loads a resource.

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

Returns whether this class supports the given resource.

LoaderResolverInterface getResolver()

Gets the loader resolver.

setResolver(登录查看完整内容