FileAccess Orion

Loader
in package
implements LoaderInterface

Loader is the abstract class used by all built-in loaders.

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes, Traits and Enums

LoaderInterface
LoaderInterface is the interface implemented by all loader classes.

Table of Contents

$resolver  : mixed
getResolver()  : LoaderResolverInterface
Gets the loader resolver.
import()  : mixed
Imports a resource.
resolve()  : $this|LoaderInterface
Finds a loader able to load an imported resource.
setResolver()  : mixed
Sets the loader resolver.

Properties

$resolver

protected mixed $resolver

Methods

import()

Imports a resource.

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

A resource

$type : string|null = null

The resource type or null if unknown

Return values
mixed

resolve()

Finds a loader able to load an imported resource.

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

A resource

$type : string|null = null

The resource type or null if unknown

Tags
throws
LoaderLoadException

If no loader is found

Return values
$this|LoaderInterface

Search results