Skip to content

Instantly share code, notes, and snippets.

@roman204
Created January 13, 2018 20:28
Show Gist options
  • Save roman204/37cd527bffe3ec29ee6cb7a607783906 to your computer and use it in GitHub Desktop.
Save roman204/37cd527bffe3ec29ee6cb7a607783906 to your computer and use it in GitHub Desktop.
compare module of magento2 in config.dev.php and config.prod.php
<?php
/**
* CopeX GmbH https://copex.io
* Created by PhpStorm.
* User: roman
* Date: 13.01.18
* Time: 21:23
*/
$dev = include 'config.dev.php';
$prod = include 'config.prod.php';
foreach ($dev['modules'] as $moduleName => $enabled) {
if(!array_key_exists($moduleName, $prod['modules'])){
echo $moduleName . ' missing in prod'. PHP_EOL;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment