diff --git a/src/StashServiceProvider.php b/src/StashServiceProvider.php index 11ad84f..8895b02 100644 --- a/src/StashServiceProvider.php +++ b/src/StashServiceProvider.php @@ -82,14 +82,14 @@ public function register(Container $c) foreach ($keys as $name) { $options = $c['stashes.options'][$name]; - $drivers[$name] = $drivers->share(function ($drivers) use ($c, $name, $options) { + $drivers[$name] = function ($drivers) use ($c, $name, $options) { $class = $c['stashes.driver.class'][$name]; if (substr($class, 0 , 1) !== '\\') { $class = sprintf('\\Stash\\Driver\\%s', $class); } $driver = new $class($options); return $driver; - }); + }; } return $drivers;