From db4944644ddb9e458099565efc89fdd9e2496230 Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 2 Sep 2016 00:34:09 +0200 Subject: [PATCH] Fixing relic from 1.0 --- src/StashServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;