laravel-mongodb-session
laravel-mongodb-session copied to clipboard
Getting error due to missing implementation of getDefaultDriver after 4.2 upgrade
I am getting the error message bellow after upgrading to Laravel 4.2. When I looked into the error message it is due to missing implementation of getDefaultDriver method.
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class Jenssegers\Mongodb\Session\SessionManager contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Support\Manager::getDefaultDriver)","file":"G:\Workspace\Luukal Workspace\lk-dev\vendor\jenssegers\mongodb-session\src\Jenssegers\Mongodb\Session\SessionManager.php","line":73}}
There is no line 73 in Jenssegers\Mongodb\Session\SessionManager.php. Did you add that?
Yep the original goes up to line 69. I added the getDefaultDriver function; however didn't get a change to test it. /** * Get the default driver. * * @return string */ public function getDefaultDriver() { return $this->app['config']['session.driver']; }
Can you check if that last commit fixed things?
Thanks that fixed the issue :).