2017 © Pedro Peláez
 

symfony-bundle dynamic-domain-config

image

tobur/dynamic-domain-config

  • Monday, July 30, 2018
  • by Tobur
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Install:, (*1)

composer require tobur/dynamic-domain-config

Configure:, (*2)

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:, (*3)

domain_mapping->your domain->setting name

What for you need that?, (*4)

You can use this bundle for override parameters based on domain., (*5)

I used this for split selenium tests in my project and run them in parallel., (*6)

The Versions

30/07 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

30/07 2018

v0.5

0.5.0.0

  Sources   Download

The Requires