Documentation

DelegatingLoader extends Loader
in package

DelegatingLoader delegates loading to other loaders using a loader resolver.

This loader acts as an array of LoaderInterface objects - each having a chance to load a given resource (handled by the resolver)

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$env  : mixed
$resolver  : mixed

Methods

__construct()  : mixed
getResolver()  : LoaderResolverInterface
Gets the loader resolver.
import()  : mixed
Imports a resource.
load()  : mixed
Loads a resource.
resolve()  : LoaderInterface
Finds a loader able to load an imported resource.
setResolver()  : mixed
Sets the loader resolver.
supports()  : bool
Returns whether this class supports the given resource.

Properties

$resolver

protected mixed $resolver

Methods

import()

Imports a resource.

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

load()

Loads a resource.

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

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