getServiceLocator()->get(DeliveryServerService::SERVICE_ID); $containerClass = $dService->getOption('deliveryContainer'); switch ($containerClass) { case 'oat\\taoDelivery\\helper\\container\\DeliveryServiceContainer': $container = new LegacyServiceContainer(); $container->setServiceLocator($this->getServiceLocator()); break; case 'oat\\taoDelivery\\helper\\container\\DeliveryClientContainer': $container = new LegacyClientContainer(); $container->setServiceLocator($this->getServiceLocator()); break; default: throw new \common_exception_InconsistentData('Unknown container "' . $containerClass . '"'); } return $container; } /** * (non-PHPdoc) * @see \oat\taoDelivery\model\RuntimeService::getRuntime() */ public function getRuntime($deliveryId) { return $this->getServiceLocator()->get(AssignmentService::SERVICE_ID)->getRuntime($deliveryId); } }