AliasLoader (Foundation)

AliasLoader

class AliasLoader (View source)

Methods

static AliasLoader getInstance(array $aliases = array())

Get or create the singleton alias loader instance.

bool|null load(string $alias)

Load a class alias if it is registered.

void alias(string $class, string $alias)

Add an alias to the loader.

void register()

Register the loader on the auto-loader stack.

array getAliases()

Get the registered aliases.

void setAliases(array $aliases)

Set the registered aliases.

bool isRegistered()

Indicates if the loader has been registered.

void setRegistered(bool $value)

Set the "registered" state of the loader.

static void setInstance(AliasLoader $loader)

Set the value of the singleton alias loader.

Details

static AliasLoader getInstance(array $aliases = array())

Get or create the singleton alias loader instance.

Parameters

array $aliases

Return Value

AliasLoader

bool|null load(string $alias)

Load a class alias if it is registered.

Parameters

string $alias

Return Value

bool|null

void alias(string $class, string $alias)

Add an alias to the loader.

Parameters

string $class
string $alias

Return Value

void

void register()

Register the loader on the auto-loader stack.

Return Value

void

array getAliases()

Get the registered aliases.

Return Value

array

void setAliases(array $aliases)

Set the registered aliases.

Parameters

array $aliases

Return Value

void

bool isRegistered()

Indicates if the loader has been registered.

Return Value

bool

void setRegistered(bool $value)

Set the "registered" state of the loader.

Parameters

bool $value

Return Value

void

static void setInstance(AliasLoader $loader)

Set the value of the singleton alias loader.

Parameters

AliasLoader $loader

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/AliasLoader.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部