tobur/dynamic-domain-config

There is no license information available for the latest version (v0.6) of this package.

Installs: 708

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:symfony-bundle

v0.6 2018-10-17 09:12 UTC

This package is not auto-updated.

Last update: 2024-06-12 03:14:21 UTC


README

Install:

composer require tobur/dynamic-domain-config

Configure:

dynamic_domain_config:
  domain_mapping:
    example-1.localhost:
        doctrine_host: 'db1'
    example-2.localhost:
        doctrine_host: 'db'
    example-3.localhost:
        doctrine_host: 'db2'
  doctrine_connection: # mapping for doctrine connection parameters
      dbname: 'doctrine_dbname'
      host: 'doctrine_host'
      port: 'doctrine_port'
      user: 'doctrine_user'
      password: 'doctrine_password'

If domain "example-1.localhost" and we have parameter in container with name "doctrine_host" - Bundle will rewrite this parameter from:

domain_mapping->your domain->setting name

What for you need that?

You can use this bundle for override parameters based on domain.

I used this for split selenium tests in my project and run them in parallel.