| Total Complexity | 4 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class PageMiddleware extends AbstractMiddleware |
||
| 9 | { |
||
| 10 | public function process($page, array $context = array()) |
||
| 11 | { |
||
| 12 | /** @var LayoutRepository $repository */ |
||
| 13 | $repository = $this->container->get(LayoutRepository::class); |
||
| 14 | $page->setLayout($repository->findOneBy(['default' => true])); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function supportsData($data): bool |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function getSubscribedServices(): array |
||
| 26 | ]; |
||
| 27 | } |
||
| 29 |