Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | public function __invoke(ContainerInterface $container): ImageHandler |
||
16 | { |
||
17 | $entityManager = $container->get(EntityManager::class); |
||
18 | $imageService = $container->get(ImageResizer::class); |
||
19 | |||
20 | return new ImageHandler($entityManager->getRepository(Image::class), $imageService); |
||
21 | } |
||
23 |