| Conditions | 3 |
| Paths | 3 |
| Total Lines | 25 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function get(): array |
||
| 31 | { |
||
| 32 | $finder = new ControllerFinder($this->namespace); |
||
| 33 | $reader = new ControllerMethodReader($this->namespace); |
||
| 34 | |||
| 35 | $tbody = []; |
||
| 36 | |||
| 37 | foreach ($finder->find() as $class) { |
||
| 38 | $output = $reader->read( |
||
| 39 | $class, |
||
| 40 | $this->defaultController, |
||
| 41 | $this->defaultMethod |
||
| 42 | ); |
||
| 43 | |||
| 44 | foreach ($output as $item) { |
||
| 45 | $tbody[] = [ |
||
| 46 | 'auto', |
||
| 47 | $item['route'], |
||
| 48 | '', |
||
| 49 | $item['handler'], |
||
| 50 | ]; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | return $tbody; |
||
| 55 | } |
||
| 57 |