From 8b1d7f42c110d9ed422d6f2f8502f551008a2d55 Mon Sep 17 00:00:00 2001 From: alojua Date: Tue, 15 May 2018 13:33:18 +0200 Subject: [PATCH] Make possible to set null values using config:set command --- .../Magento/Config/Console/Command/ConfigSetCommand.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Config/Console/Command/ConfigSetCommand.php b/app/code/Magento/Config/Console/Command/ConfigSetCommand.php index cb79daddbf5f9..d12b126a8b5fa 100644 --- a/app/code/Magento/Config/Console/Command/ConfigSetCommand.php +++ b/app/code/Magento/Config/Console/Command/ConfigSetCommand.php @@ -173,9 +173,14 @@ protected function execute(InputInterface $input, OutputInterface $output) $lockTargetPath = ConfigFilePool::APP_CONFIG; } + $value = $input->getArgument(static::ARG_VALUE); + if ($value === 'NULL') { + $value = null; + } + return $this->processorFacadeFactory->create()->processWithLockTarget( $input->getArgument(static::ARG_PATH), - $input->getArgument(static::ARG_VALUE), + $value, $input->getOption(static::OPTION_SCOPE), $input->getOption(static::OPTION_SCOPE_CODE), $lock,