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 ...@@ -79,7 +79,8 @@ class ModuleManager
if (isset($coreModules[$moduleToDisable])) { if (isset($coreModules[$moduleToDisable])) {
continue; continue;
} }
$this->module->disable($moduleToDisable); $module = $this->module->get($moduleToDisable);
$module->disable();
} }
} }
...@@ -90,7 +91,8 @@ class ModuleManager ...@@ -90,7 +91,8 @@ class ModuleManager
public function enableModules($modules) public function enableModules($modules)
{ {
foreach ($modules as $moduleToEnable => $value) { foreach ($modules as $moduleToEnable => $value) {
$this->module->enable($moduleToEnable); $module = $this->module->get($moduleToEnable);
$module->enable();
} }
} }
} }
...@@ -8,5 +8,8 @@ ...@@ -8,5 +8,8 @@
"providers": [ "providers": [
"Modules\\Workshop\\Providers\\RouteServiceProvider", "Modules\\Workshop\\Providers\\RouteServiceProvider",
"Modules\\Workshop\\Providers\\WorkshopServiceProvider" "Modules\\Workshop\\Providers\\WorkshopServiceProvider"
],
"files": [
"start.php"
] ]
} }
<?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'; 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