public function getTrashService() { if ($this->trashService !== null) { return $this->trashService; } $this->trashService = new TrashService($this->repository->getTrashService(), $this->signalDispatcher); return $this->trashService; }