Documentation

LoaderInterface

LoaderInterface is the interface implemented by all loader classes.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Methods

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 $type = null ]) : mixed
Parameters
$resource : mixed
$type : string = null
Tags
throws
Exception

If something went wrong

supports()

Returns whether this class supports the given resource.

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

A resource

$type : string = null
Return values
bool

        
On this page

Search results