Documentation

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 and Traits

LoaderInterface
LoaderInterface is the interface implemented by all loader classes.

Table of Contents

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

Properties

$resolver

protected mixed $resolver

Methods

__construct()

public __construct([string|null $env = null ]) : mixed
Parameters
$env : string|null = null
Return values
mixed

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 ]) : 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
LoaderInterface

Search results