| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | private function createCached(?string $module = null): ResourceRouteList |
||
| 37 | { |
||
| 38 | $files = []; |
||
| 39 | $presenterFiles = Finder::findFiles('*Presenter.php')->from($this->presentersRoot); |
||
| 40 | foreach ($presenterFiles as $path => $splFile) { |
||
| 41 | $files[] = $path; |
||
| 42 | } |
||
| 43 | |||
| 44 | $routeList = $this->routeListFactory->create($module); |
||
| 45 | $this->cache->save(self::CACHE_NAME, $routeList, [Cache::Files => $files]); |
||
| 46 | return $routeList; |
||
| 47 | } |
||
| 61 |