<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
space48 / magento2-environment-configuration example snippets
use Space48\EnvironmentConfiguration\ConfigValue;
use Space48\EnvironmentConfiguration\ConfigValueSet;
use Space48\EnvironmentConfiguration\Environment;
use Space48\EnvironmentConfiguration\EnvironmentConfigValues;
use Space48\EnvironmentConfiguration\Scope;
return EnvironmentConfigValues::create()
->withConfigValuesForEnvironment(
$values = ConfigValueSet::of([
new ConfigValue('example/config/path', 'example config value')
]),
$environment = Environment::LOCAL)
->withConfigValuesForEnvironment(
$values = ConfigValueSet::of([
(new ConfigValue('example/config/path', 'example website specific value'))
->withScope(
new Scope('websites', 3)
)
]),
$environment = Environment::PRODUCTION);
sh
composer gento module:enable Space48_EnvironmentConfiguration
sh
php bin/magento environment-configuration:apply local|development|staging|production
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.