Commit a0b7964e authored by Nicolas Widart's avatar Nicolas Widart

Merge commit '44c8992d'

* commit '44c8992d':
  Squashed 'Modules/Workshop/' changes from adc4bf6..fef5639
parents 86ec466c 44c8992d
......@@ -79,7 +79,8 @@ class ModuleManager
if (isset($coreModules[$moduleToDisable])) {
continue;
}
$this->module->disable($moduleToDisable);
$module = $this->module->get($moduleToDisable);
$module->disable();
}
}
......@@ -90,7 +91,8 @@ class ModuleManager
public function enableModules($modules)
{
foreach ($modules as $moduleToEnable => $value) {
$this->module->enable($moduleToEnable);
$module = $this->module->get($moduleToEnable);
$module->enable();
}
}
}
......@@ -8,5 +8,8 @@
"providers": [
"Modules\\Workshop\\Providers\\RouteServiceProvider",
"Modules\\Workshop\\Providers\\WorkshopServiceProvider"
],
"files": [
"start.php"
]
}
<?php
/*
|--------------------------------------------------------------------------
| Register The Module Namespaces
|--------------------------------------------------------------------------
|
| Here is you can register the namespace for this module.
| You may to edit this namespace if you want.
|
*/
View::addNamespace('workshop', __DIR__ . '/Resources/views/');
Lang::addNamespace('workshop', __DIR__ . '/Resources/lang/');
Config::addNamespace('workshop', __DIR__ . '/Config/');
require __DIR__ . '/composers.php';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment