From a87e50f0f3037fbe33d8968b144dfe3ada2cffd1 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 2 Jan 2017 18:43:25 +0100 Subject: [PATCH] compatible with RobotLoader 3.0 --- composer.json | 2 +- src/Bridges/ApplicationDI/ApplicationExtension.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 394495a10..241d497c4 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Bridges/ApplicationDI/ApplicationExtension.php b/src/Bridges/ApplicationDI/ApplicationExtension.php index 485454205..cee414dfd 100644 --- a/src/Bridges/ApplicationDI/ApplicationExtension.php +++ b/src/Bridges/ApplicationDI/ApplicationExtension.php @@ -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();