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