Skip to content

Commit

Permalink
fix: minor optimizations LaminasCache
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Ratz committed Jan 17, 2024
1 parent 09706b8 commit e29cf62
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/LaminasCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ class LaminasCache implements CacheInterface
*/
public function __construct(array $configuration)
{
if (!isset($configuration['adapter'])) {
$configuration['adapter'] = 'Filesystem';
}

if (!isset($configuration['adapterOptions'])) {
$configuration['adapterOptions'] = [];
}

$cache = StorageFactory::factory([
'adapter' => [
'name' => $configuration['adapter'],
'options' => $configuration['adapterOptions'],
'name' => $configuration['adapter'] ?? 'Filesystem',
'options' => $configuration['adapterOptions'] ?? [],
],
]);

Expand Down

0 comments on commit e29cf62

Please sign in to comment.