You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -133,9 +137,15 @@ public function beforeCompile()
133
137
privatefunctionfindPresenters(): array
134
138
{
135
139
$config = $this->getConfig();
136
-
$classes = [];
137
140
138
-
if ($config->scanDirs) {
141
+
if ($this->robotLoader) {
142
+
if ($config->scanDirs && $config->scanDirs !== $this->scanDirs) {
143
+
trigger_error("Option 'scanDir' has no effect, global RobotLoader is used.", E_USER_DEPRECATED);
144
+
}
145
+
$robot = $this->robotLoader;
146
+
$robot->refresh();
147
+
148
+
} elseif ($config->scanDirs) {
139
149
if (!class_exists(Nette\Loaders\RobotLoader::class)) {
140
150
thrownewNette\NotSupportedException("RobotLoader is required to find presenters, install package `nette/robot-loader` or disable option {$this->prefix('scanDirs')}: false");
141
151
}
@@ -148,6 +158,10 @@ private function findPresenters(): array
0 commit comments