Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dizbiz90 opened this issue Jun 16, 2014 · 4 comments

Comments

@dizbiz90
Copy link

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
Copy link
Owner

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

@dizbiz90
Copy link
Author

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
Copy link
Owner

Can you check if that last commit fixed things?

@dizbiz90
Copy link
Author

Thanks that fixed the issue :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants