Skip to content

Commit

Permalink
Configurator: passes RobotLoader to ApplicationExtension [Closes nett…
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 15, 2019
1 parent 6c73630 commit 1c7354d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Bootstrap/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ public function createRobotLoader(): Nette\Loaders\RobotLoader
$loader = new Nette\Loaders\RobotLoader;
$loader->setTempDirectory($this->getCacheDirectory() . '/nette.robotLoader');
$loader->setAutoRefresh($this->parameters['debugMode']);

if (isset($this->defaultExtensions['application'])) {
$this->defaultExtensions['application'][1][3] = $loader;
}
return $loader;
}

Expand Down

0 comments on commit 1c7354d

Please sign in to comment.