more session refactoring.

This commit is contained in:
Taylor Otwell
2011-09-14 20:49:38 -05:00
parent ae5393f5a7
commit 6becbaba51
3 changed files with 18 additions and 18 deletions

View File

@@ -34,12 +34,12 @@ class Manager {
*/
public function driver($driver)
{
if ( ! $this->container->registered('laravel.session.'.$driver))
if ($this->container->registered('laravel.session.'.$driver))
{
throw new \Exception("Session driver [$driver] is not supported.");
return $this->container->resolve('laravel.session.'.$driver);
}
return $this->container->resolve('laravel.session.'.$driver);
throw new \Exception("Session driver [$driver] is not supported.");
}
}