Documentation

LoaderInterface

LoaderInterface is the interface implemented by all loader classes.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

getResolver()  : LoaderResolverInterface
Gets the loader resolver.
load()  : mixed
Loads a resource.
setResolver()  : mixed
Sets the loader resolver.
supports()  : bool
Returns whether this class supports the given resource.

Methods

load()

Loads a resource.

public load(mixed $resource[, string|null $type = null ]) : mixed
Parameters
$resource : mixed

The resource

$type : string|null = null
Tags
throws
Exception

If something went wrong

Return values
mixed

supports()

Returns whether this class supports the given resource.

public supports(mixed $resource[, string|null $type = null ]) : bool
Parameters
$resource : mixed

A resource

$type : string|null = null
Return values
bool

Search results