We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222c801 commit f1a3d53Copy full SHA for f1a3d53
src/Bridges/CacheDI/CacheExtension.php
@@ -29,7 +29,11 @@ public function __construct($tempDir)
29
30
public function loadConfiguration()
31
{
32
- @mkdir($this->tempDir . '/cache'); // @ - directory may exists
+ $dir = $this->tempDir . '/cache';
33
+ Nette\Utils\FileSystem::createDir($dir);
34
+ if (!is_writable($dir)) {
35
+ throw new Nette\InvalidStateException("Make directory '$dir' writable.");
36
+ }
37
38
$builder = $this->getContainerBuilder();
39
0 commit comments