$rawValue =
$input->
getArgument('value'
);
$value =
$this->
castValue($rawValue);
if (preg_match('/^\[(.+,?)*\]$/',
$value,
$matches) && \
count($matches) == 2
) { $value =
explode(',',
$matches[1
]);
$value =
array_map(function D
$val) { return $this->
castValue($val);
},
$value);
} $pluginManager->
saveConfigElement($plugin,
$input->
getArgument('key'
),
$value,
$shop);
$output->
writeln(sprintf('Plugin configuration for Plugin %s saved.',
$pluginName));
return 0;
} /**
* Casts a given string into the proper type.
* Works only for some types, see return.
*
* @param string $value
*
* @return bool|int|string|null
*/