getLtiProvider()->getLtiVersion() === '1.1') { return $this->getLti1p1Launcher()->launch($command); } if ($command->getLtiProvider()->getLtiVersion() === '1.3') { return $this->getLti1p3Launcher()->launch($command); } throw new LogicException( sprintf( 'LTI version %s is not supported', $command->getLtiProvider()->getLtiVersion() ) ); } private function getLti1p3Launcher(): LtiLauncherInterface { return $this->getServiceLocator()->get(Lti1p3Launcher::class); } private function getLti1p1Launcher(): LtiLauncherInterface { return $this->getServiceLocator()->get(Lti1p1Launcher::class); } }