Commit 2c8a4b2a authored by Motch Julien's avatar Motch Julien Committed by Nicolas Widart

Update to Laravel 5.4 Sessions:Symfony Compatibility (#328)

See https://laravel.com/docs/5.4/upgrade

>set() method should be changed to ->put()

....

Sessions:Symfony Compatibility

Laravel's session handlers no longer implements Symfony's SessionInterface. Implementing this interface required us to implement extraneous features that were not needed by the framework. Instead, a new Illuminate\Contracts\Session\Session interface has been defined and may be used instead. The following code changes should also be applied:

All calls to the ->set() method should be changed to ->put(). Typically, Laravel applications would never call the set method since it has never been documented within the Laravel documentation. However, it is included here out of caution.

All calls to the ->getToken() method should be changed to ->token().

All calls to the $request->setSession() method should be changed to setLaravelSession().
parent 255c93f2
...@@ -49,7 +49,7 @@ class SettingController extends AdminBaseController ...@@ -49,7 +49,7 @@ class SettingController extends AdminBaseController
public function getModuleSettings(Module $currentModule) public function getModuleSettings(Module $currentModule)
{ {
$this->session->set('module', $currentModule->getLowerName()); $this->session->put('module', $currentModule->getLowerName());
$modulesWithSettings = $this->setting->moduleSettings($this->module->enabled()); $modulesWithSettings = $this->setting->moduleSettings($this->module->enabled());
......
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