/** * @param $domainId * @param DomainListener $listener * @return mixed */ public function execute($domainId, DomainListener $listener) { $domain = $this->repository->getDomainById($domainId); $sshKey = $this->getPublicKey(); $this->log->info('Show Domain id ' . $domainId, $domain->toArray()); return $listener->view('domains.show', compact('domain', 'sshKey')); }