Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function process($object, array $context = array(), ?string $format = null) |
||
18 | { |
||
19 | /** @var RouteFactory $routeFactory */ |
||
20 | $routeFactory = $this->container->get(RouteFactory::class); |
||
21 | /** @var EntityManagerInterface $em */ |
||
22 | $em = $this->container->get(EntityManagerInterface::class); |
||
23 | $routeFactory->createPageRoute($object, $em); |
||
24 | $em->flush(); |
||
25 | } |
||
40 |