diff --git a/src/Bridges/ApplicationDI/PresenterFactoryCallback.php b/src/Bridges/ApplicationDI/PresenterFactoryCallback.php index c02fa4574..5d59dd321 100644 --- a/src/Bridges/ApplicationDI/PresenterFactoryCallback.php +++ b/src/Bridges/ApplicationDI/PresenterFactoryCallback.php @@ -44,6 +44,7 @@ public function __invoke(string $class): Nette\Application\IPresenter } elseif (!$services) { if ($this->touchToRefresh) { + Nette\Utils\FileSystem::createDir(dirname($this->touchToRefresh)); touch($this->touchToRefresh); }