elgentos / LargeConfigProducts

Large Configurable Products workaround for Magento 2
91 stars 29 forks source link

Add env.php configuration and introduce Credit_Client Factory #30

Closed mwr closed 5 years ago

mwr commented 5 years ago

This pull request will

This way it is possible to have a custom configuration in you env.php, looking something like this:

  'cache' =>
  array (
    'frontend' =>
    array (
      'elgentos_largeconfigproducts' => [
        'backend' => 'Cm_Cache_Backend_Redis',
        'backend_options' => [
            'server' => '__REDIS_HOST__',
            'port' => '__REDIS_PORT__',
            'password' => '__REDIS_PASSWORD__',
            'persistent' => '',
            'database' => '__REDIS_DATABASE__',
        ]
      ],

The recently introduced way using the store-configuration in core_config_data will be used as a fallback mechanism to preserve backwards compatibility.

simonmaass commented 5 years ago

would be great!

peterjaap commented 5 years ago

LGTM!