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
Copy file name to clipboardExpand all lines: src/Bridges/ApplicationDI/ApplicationExtension.php
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -138,14 +138,7 @@ private function findPresenters(): array
138
138
{
139
139
$config = $this->getConfig();
140
140
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) {
141
+
if ($config->scanDirs) {
149
142
if (!class_exists(Nette\Loaders\RobotLoader::class)) {
150
143
thrownewNette\NotSupportedException("RobotLoader is required to find presenters, install package `nette/robot-loader` or disable option {$this->prefix('scanDirs')}: false");
151
144
}
@@ -158,6 +151,10 @@ private function findPresenters(): array
0 commit comments