Skip to content

Commit a6f622d

Browse files
ricco24dg
authored andcommitted
PresenterFactoryCallback: creates directory for touch file in case directory not exists (#237)
1 parent f7df426 commit a6f622d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Bridges/ApplicationDI/PresenterFactoryCallback.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function __invoke(string $class): Nette\Application\IPresenter
4444

4545
} elseif (!$services) {
4646
if ($this->touchToRefresh) {
47+
Nette\Utils\FileSystem::createDir(dirname($this->touchToRefresh));
4748
touch($this->touchToRefresh);
4849
}
4950

0 commit comments

Comments
 (0)