LaravelAutoloader

Summary

No protected properties found
N/A
No private methods found
No private properties found
N/A
File
autoloader.php
Package
Default
Class hierarchy
LaravelAutoloader

Tags

None found

Properties

$mappings

$mappings : array

The mappings from class names to file paths.

Type

array

Tags

None found

$directories

$directories : array

The directories that use the PSR-0 naming convention.

Type

array

Tags

None found

$namespaces

$namespaces : array

The mappings for namespaces to directories.

Type

array

Tags

None found

$underscored

$underscored : array

The mappings for underscored libraries to directories.

Type

array

Tags

None found

$aliases

$aliases : array

All of the class aliases registered with the auto-loader.

Type

array

Tags

None found

Methods

load()

load(string  $class) : void

Load the file corresponding to a given class.

This method is registered in the bootstrap file as an SPL auto-loader.

Parameters

string $class

static

Tags

None found

map()

map(array  $mappings) : void

Register an array of class to path mappings.

Parameters

array $mappings

static

Tags

None found

alias()

alias(string  $class, string  $alias) : void

Register a class alias with the auto-loader.

Parameters

string $class
string $alias

static

Tags

None found

directories()

directories(string|array  $directory) : void

Register directories to be searched as a PSR-0 library.

Parameters

string|array $directory

static

Tags

None found

namespaces()

namespaces(array  $mappings, string  $append = '\\') : void

Map namespaces to directories.

Parameters

array $mappings
string $append

static

Tags

None found

underscored()

underscored(array  $mappings) : void

Register underscored "namespaces" to directory mappings.

Parameters

array $mappings

static

Tags

None found

load_namespaced()

load_namespaced(string  $class, string  $namespace, string  $directory) : void

Load a namespaced class from a given directory.

Parameters

string $class
string $namespace
string $directory

static

Tags

None found

load_psr()

load_psr(string  $class, string  $directory = null) : void

Attempt to resolve a class using the PSR-0 standard.

Parameters

string $class
string $directory

static

Tags

None found

format_mappings()

format_mappings(array  $mappings, string  $append) : array

Format an array of namespace to directory mappings.

Parameters

array $mappings
string $append

Returns

array

static

Tags

None found

format()

format(array  $directories) : array

Format an array of directories with the proper trailing slashes.

Parameters

array $directories

Returns

array

static

Tags

None found