public function __construct(Doctrine $doctrine, EventDispatcher $eventDispatcher, Definition $objectDefinition) { $this->doctrine = $doctrine; $this->eventDispatcher = $eventDispatcher; $this->objectDefinition = $objectDefinition; }