1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 03:43:33 +01:00

Debugbar is enabled only if APP_ENV=local

This commit is contained in:
FreeScout 2018-11-13 10:56:57 -08:00
parent cfc59939f7
commit d8acd413f4
2 changed files with 10 additions and 2 deletions

View File

@ -247,7 +247,8 @@ return [
* Package Service Providers... * Package Service Providers...
*/ */
Devfactory\Minify\MinifyServiceProvider::class, Devfactory\Minify\MinifyServiceProvider::class,
Barryvdh\Debugbar\ServiceProvider::class, // Debugbar is enabled only if APP_ENV=local
//Barryvdh\Debugbar\ServiceProvider::class,
/* /*
* Application Service Providers... * Application Service Providers...

View File

@ -175,7 +175,14 @@ abstract class Module extends ServiceProvider
} }
if ($this->isLoadFilesOnBoot()) { 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'); $this->fireEvent('boot');