mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-24 19:33:07 +01:00
Debugbar is enabled only if APP_ENV=local
This commit is contained in:
parent
cfc59939f7
commit
d8acd413f4
@ -247,7 +247,8 @@ return [
|
||||
* Package Service Providers...
|
||||
*/
|
||||
Devfactory\Minify\MinifyServiceProvider::class,
|
||||
Barryvdh\Debugbar\ServiceProvider::class,
|
||||
// Debugbar is enabled only if APP_ENV=local
|
||||
//Barryvdh\Debugbar\ServiceProvider::class,
|
||||
|
||||
/*
|
||||
* Application Service Providers...
|
||||
|
@ -175,7 +175,14 @@ abstract class Module extends ServiceProvider
|
||||
}
|
||||
|
||||
if ($this->isLoadFilesOnBoot()) {
|
||||
$this->registerFiles();
|
||||
try {
|
||||
$this->registerFiles();
|
||||
} catch (\Exception $e) {
|
||||
$e = \Eventy::filter('modules.register_error', $e, $this);
|
||||
if ($e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->fireEvent('boot');
|
||||
|
Loading…
Reference in New Issue
Block a user