Skip to content

Commit

Permalink
Merge pull request #57 from c960657/filesystem-cache-options
Browse files Browse the repository at this point in the history
Support filesystem cache options
  • Loading branch information
simensen committed Sep 7, 2015
2 parents f198f49 + 7ed510f commit 9677500
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 9677500

Please sign in to comment.