From 6e98efdd8445b6f88b622f7651cb021477e007f3 Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 2 Sep 2016 00:25:59 +0200 Subject: [PATCH] Adding support for `stash.driver.class` --- src/StashServiceProvider.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/StashServiceProvider.php b/src/StashServiceProvider.php index 27a87e9..11ad84f 100644 --- a/src/StashServiceProvider.php +++ b/src/StashServiceProvider.php @@ -33,6 +33,12 @@ public function register(Container $c) $c['stashes.driver.class'] = array(); } + if (isset($c['stash.driver.class'])) { + $tmp = $c['stashes.driver.class']; + $tmp['default'] = $c['stash.driver.class']; + $c['stashes.driver.class'] = $tmp; + } + if (!isset($c['stashes.options'])) { $c['stashes.options'] = array(); }