continued refactoring.
This commit is contained in:
@@ -20,6 +20,7 @@ class APC extends Driver {
|
||||
* Create a new APC session driver instance.
|
||||
*
|
||||
* @param Cache\APC $apc
|
||||
* @param int $lifetime
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(\Laravel\Cache\APC $apc, $lifetime)
|
||||
|
||||
@@ -34,12 +34,12 @@ class Manager {
|
||||
*/
|
||||
public function driver($driver)
|
||||
{
|
||||
if (in_array($driver, array('cookie', 'file', 'database', 'apc', 'memcached')))
|
||||
if ( ! $this->container->registered('laravel.session.'.$driver))
|
||||
{
|
||||
return $this->container->resolve('laravel.session.'.$driver);
|
||||
throw new \Exception("Session driver [$driver] is not supported.");
|
||||
}
|
||||
|
||||
throw new \Exception("Session driver [$driver] is not supported.");
|
||||
return $this->container->resolve('laravel.session.'.$driver);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user