| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class FileMiddleware extends AbstractMiddleware |
||
| 9 | { |
||
| 10 | public function process($component, array $context = array()) |
||
| 11 | { |
||
| 12 | /** @var FileDataFactory $factory */ |
||
| 13 | $factory = $this->container->get(FileDataFactory::class); |
||
| 14 | $fileData = $factory->create($component); |
||
| 15 | $component->setFileData($fileData); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function supportsData($data): bool |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function getSubscribedServices(): array |
||
| 30 |