Skip to content

Commit 7ed510f

Browse files
author
Christian Schmidt
committed
Support filesystem cache options
1 parent f198f49 commit 7ed510f

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)