Created
January 13, 2018 20:28
-
-
Save roman204/37cd527bffe3ec29ee6cb7a607783906 to your computer and use it in GitHub Desktop.
compare module of magento2 in config.dev.php and config.prod.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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