FIX: do not prevent running ModuleManager in CLI mode
This commit is contained in:
@@ -15,14 +15,14 @@ class ModuleManager extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// ignore running from artisan
|
||||
if (App::runningInConsole()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// this service provider needs published config - config is merged right after this service provider
|
||||
try {
|
||||
$modules = Module::where('is_template', false)
|
||||
->get();
|
||||
} catch (\Exception $e) {
|
||||
// ignore error
|
||||
return;
|
||||
}
|
||||
|
||||
// iterate over all modules and enable or disable them
|
||||
foreach ($modules as $module) {
|
||||
|
||||
Reference in New Issue
Block a user