public function __construct(AttachmentService $attachmentService, Attachment $attachment, PageRepo $pageRepo) { $this->attachmentService = $attachmentService; $this->attachment = $attachment; $this->pageRepo = $pageRepo; parent::__construct(); }