getConfig()->get('defaultPortalId'); if (!$id) { throw new NotFound(); } } $application = new \Espo\Core\Portal\Application($id); $application->setBasePath($this->getContainer()->get('clientManager')->getBasePath()); $application->runClient(); } }