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 e635320
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Bootstrap/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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%']],
Expand Down 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][1] = $loader;
}
return $loader;
}

Expand Down

0 comments on commit e635320

Please # to comment.