| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function getParameters(): array |
||
| 57 | { |
||
| 58 | $container = $this->kernel->getContainer(); |
||
| 59 | |||
| 60 | if (!$container instanceof Container) { |
||
| 61 | throw new \DomainException('Could not get the parameters of kernel\'s container.'); |
||
| 62 | } |
||
| 63 | |||
| 64 | return (new ContainerBasedContainerAccessor($container))->getParameters(); |
||
| 65 | } |
||
| 66 | } |
||
| 67 |