Skip to content

Commit

Permalink
PresenterFactoryCallback: creates directory for touch file in case di…
Browse files Browse the repository at this point in the history
…rectory not exists (#237)
  • Loading branch information
ricco24 authored and dg committed Nov 19, 2019
1 parent 602f16d commit 0e26720
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Bridges/ApplicationDI/PresenterFactoryCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0e26720

Please sign in to comment.