Skip to content

Application

Favre Anael edited this page May 13, 2016 · 3 revisions

The application class allows you get app informations or do actions regardless the Laravel or Lumen version.

Get framework informations

You can retrieve some informations about the environment.

Check if the running framework is laravel or lumen :

WhiteFrame\Support\Application::isLumen();
WhiteFrame\Support\Application::isLaravel();

Register Alias

You can do actions regardless the Laravel or Lumen version.

Register an alias into the framework :

WhiteFrame\Support\Application::alias('MyClass', 'Path\To\MyFacade');
Clone this wiki locally