Skip to content

Instantly share code, notes, and snippets.

View KevinMace's full-sized avatar

Kevin Mace KevinMace

  • Northamptonshire, UK
View GitHub Profile
@KevinMace
KevinMace / RepairDefaultConfigCommand.php
Created January 10, 2018 14:33
Magento 2 console command to find any configuration values missing a default/global value and sets them to null. This is a fix for issue #12097
<?php
/**
* @author Kevin Mace (kevin.mace@sotechnology.co.uk). All rights reserved.
*/
namespace KevinMace\Framework\Console;
use Symfony\Component\Console\Command\Command;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Filesystem\DriverPool;