objectManager = $objectManager; } /** * @param string $type * @param array $arguments * @return DeployInterface * @throws InputException */ public function create($type, array $arguments = []) { $strategyMap = [ self::DEPLOY_STRATEGY_STANDARD => Deploy\LocaleDeploy::class, self::DEPLOY_STRATEGY_QUICK => Deploy\LocaleQuickDeploy::class, ]; if (!isset($strategyMap[$type])) { throw new InputException(__('Wrong deploy strategy type: %1', $type)); } return $this->objectManager->create($strategyMap[$type], $arguments); } }