Skip to content

Core\Alias

Fariz Luqman edited this page Jul 11, 2016 · 1 revision

Responsible to register the array of class aliases when this application is started.

Configuring Aliases

Aliases can be found in the file config/aliases.php.

Prior to version 0.2.0:

<?php
return [
	'Core\App' => 'App',
	'Core\Cache' => 'Cache',
	'Core\Config' => 'Config',
	'Core\Database' => 'Database',
	'Core\Debugger' => 'Debugger',
	'Core\Router' => 'Router',
	'Core\Sharer' => 'Sharer',
	'Core\Viewer' => 'Viewer',
	'Cartalyst\Sentry\Facades\Native\Sentry' => 'Sentry'
];

Alias Manager

The method Core\Alias::init(); will register all of the aliases in the config/aliases.php file.

Visit our website for tutorials: stupidlysimple.github.io

Clone this wiki locally