public function __construct(RouterInterface $router, EntityManager $em) { $this->router = $router; $this->em = $em; }