PHP code example of webgriffe / module-config-override

1. Go to this page and download the library: Download webgriffe/module-config-override library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webgriffe / module-config-override example snippets




declare(strict_types=1);

use Symfony\Component\Dotenv\Dotenv;

(new Dotenv())->loadEnv(__DIR__ . "/../../.env");
json
    "files": [
+     "app/etc/EnvironmentVariablesLoader.php",
      "app/etc/NonComposerComponentRegistration.php"
    ],

export MAGE_ENVIRONMENT=dev && <your command>