31 private $deploymentConfig;
38 private $configPathResolver;
45 private $preparedValueFactory;
57 $this->preparedValueFactory = $preparedValueFactory;
59 $this->configPathResolver = $configPathResolver;
71 if ($this->isLocked(
$path, $scope, $scopeCode)) {
74 'The value you set has already been locked. To change the value, use the --%1 option.',
82 $backendModel = $this->preparedValueFactory->create(
$path,
$value, $scope, $scopeCode);
83 if ($backendModel instanceof Value) {
87 }
catch (\Exception $exception) {
88 throw new CouldNotSaveException(
__(
'%1', $exception->getMessage()), $exception);
100 private function isLocked(
$path, $scope, $scopeCode)
104 return $this->deploymentConfig->get($scopePath) !==
null;
process($path, $value, $scope, $scopeCode)
__construct(PreparedValueFactory $preparedValueFactory, DeploymentConfig $deploymentConfig, ConfigPathResolver $configPathResolver)