Skip to content
Permalink
Browse files

Configurator: passes RobotLoader to ApplicationExtension [Closes nett…

  • Loading branch information...
dg committed Aug 15, 2019
1 parent 6c73630 commit e635320ab7e4e34059d6b7713611495b0893f941
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/Bootstrap/Configurator.php
@@ -29,7 +29,7 @@ class Configurator
/** @var array */
public $defaultExtensions = [
'application' => [Nette\Bridges\ApplicationDI\ApplicationExtension::class, ['%debugMode%', ['%appDir%'], '%tempDir%/cache/nette.application']],
'application' => [Nette\Bridges\ApplicationDI\ApplicationExtension::class, ['%debugMode%', null, '%tempDir%/cache/nette.application']],
'cache' => [Nette\Bridges\CacheDI\CacheExtension::class, ['%tempDir%']],
'constants' => Nette\DI\Extensions\ConstantsExtension::class,
'database' => [Nette\Bridges\DatabaseDI\DatabaseExtension::class, ['%debugMode%']],
@@ -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][1] = $loader;
}
return $loader;
}

0 comments on commit e635320

Please sign in to comment.
You can’t perform that action at this time.