| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function getConfiguration(): array |
||
| 32 | { |
||
| 33 | $configurationArray = []; |
||
| 34 | foreach (['frontend', 'backend'] as $stackName) { |
||
| 35 | // reversing the array allows the admin to read the stack from top to bottom |
||
| 36 | $configurationArray[$stackName] = array_reverse((array)$this->container->get($stackName . '.middlewares')); |
||
| 37 | } |
||
| 38 | $configurationArray['raw'] = $this->container->get('middlewares'); |
||
| 39 | return $configurationArray; |
||
| 40 | } |
||
| 42 |