We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05483ef commit f23f888Copy full SHA for f23f888
src/RobotLoader/RobotLoader.php
@@ -143,7 +143,11 @@ public function getIndexedClasses()
143
*/
144
public function rebuild()
145
{
146
- $this->getCache()->save($this->getKey(), Nette\Utils\Callback::closure($this, 'rebuildCallback'));
+ if ($this->cacheStorage) {
147
+ $this->getCache()->save($this->getKey(), Nette\Utils\Callback::closure($this, 'rebuildCallback'));
148
+ } else {
149
+ $this->rebuildCallback();
150
+ }
151
}
152
153
0 commit comments