Skip to content

Commit

Permalink
Support filesystem cache options
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Schmidt committed Sep 7, 2015
1 parent f198f49 commit 7ed510f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ public function register(Container $container)
throw new \RuntimeException('FilesystemCache path not defined');
}

return new FilesystemCache($cacheOptions['path']);
$cacheOptions += array(
'extension' => FilesystemCache::EXTENSION,
'umask' => 0002,
);
return new FilesystemCache($cacheOptions['path'], $cacheOptions['extension'], $cacheOptions['umask']);
});

$container['orm.cache.factory.couchbase'] = $container->protect(function($cacheOptions){
Expand Down

0 comments on commit 7ed510f

Please sign in to comment.