Skip to content

Commit

Permalink
compatible with RobotLoader 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 4, 2017
1 parent f0077b0 commit a87e50f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"nette/tester": "~2.0",
"nette/di": "~2.4",
"nette/forms": "~2.4",
"nette/robot-loader": "~2.4",
"nette/robot-loader": "^2.4.2 || ^3.0",
"nette/security": "~2.4",
"latte/latte": "^2.4.1",
"tracy/tracy": "^2.4",
Expand Down
1 change: 0 additions & 1 deletion src/Bridges/ApplicationDI/ApplicationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ private function findPresenters()
throw new Nette\NotSupportedException("RobotLoader is required to find presenters, install package `nette/robot-loader` or disable option {$this->prefix('scanDirs')}: false");
}
$robot = new Nette\Loaders\RobotLoader;
$robot->setCacheStorage(new Nette\Caching\Storages\DevNullStorage);
$robot->addDirectory($config['scanDirs']);
$robot->acceptFiles = '*' . $config['scanFilter'] . '*.php';
$robot->rebuild();
Expand Down

0 comments on commit a87e50f

Please sign in to comment.