Skip to content

Commit 9677500

Browse files
committed
Merge pull request #57 from c960657/filesystem-cache-options
Support filesystem cache options
2 parents f198f49 + 7ed510f commit 9677500

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Dflydev/Provider/DoctrineOrm/DoctrineOrmServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,11 @@ public function register(Container $container)
325325
throw new \RuntimeException('FilesystemCache path not defined');
326326
}
327327

328-
return new FilesystemCache($cacheOptions['path']);
328+
$cacheOptions += array(
329+
'extension' => FilesystemCache::EXTENSION,
330+
'umask' => 0002,
331+
);
332+
return new FilesystemCache($cacheOptions['path'], $cacheOptions['extension'], $cacheOptions['umask']);
329333
});
330334

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

0 commit comments

Comments
 (0)