-
Notifications
You must be signed in to change notification settings - Fork 0
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.
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();
You can do actions regardless the Laravel or Lumen version.
Register an alias into the framework :
WhiteFrame\Support\Application::alias('MyClass', 'Path\To\MyFacade');