jenssegers / laravel-mongodb-session

A MongoDB session driver for Laravel
77 stars 27 forks source link

Getting error due to missing implementation of getDefaultDriver after 4.2 upgrade #7

Open dizbiz90 opened 10 years ago

dizbiz90 commented 10 years ago

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}}

jenssegers commented 10 years ago

There is no line 73 in Jenssegers\Mongodb\Session\SessionManager.php. Did you add that?

dizbiz90 commented 10 years ago

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']; }

jenssegers commented 10 years ago

Can you check if that last commit fixed things?

dizbiz90 commented 10 years ago

Thanks that fixed the issue :).