Skip to content

Commit

Permalink
Fixing relic from 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas committed Sep 1, 2016
1 parent 6e98efd commit db49446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StashServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db49446

Please sign in to comment.