Commit 44c8992d authored by Nicolas Widart's avatar Nicolas Widart

Squashed 'Modules/Workshop/' changes from adc4bf6..fef5639

fef5639 Adapt the manager to new version of Modules package
606f093 remove view namespace definitions from start file
badbe3c Adding start.php to files array

git-subtree-dir: Modules/Workshop
git-subtree-split: fef5639acdbdd479e218b3b02cc4274cc6261156
parent 6a241a81
......@@ -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