Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Configuration Helper #81

Open
Kanti opened this issue Feb 18, 2019 · 0 comments
Open

Feature Configuration Helper #81

Kanti opened this issue Feb 18, 2019 · 0 comments

Comments

@Kanti
Copy link
Member

Kanti commented Feb 18, 2019

It should be possible to load parts of the configuration from other config files.
For example, the database connection can be made from a LocalConfiguration.php (TYPO3) or a Resources/config/doctrine.yml (Symfony/Doctrine).

This requires further research.

it could look something like this:

<?php
// ...
$config->addDatabase('app', Helper::getTypo3DatabaseConfigByTypo3Context('Production'));
$config->addExcludes(Helper::getTypo3DefaultExcludes())->addExclude('table2');
// or
$config->addDatabase('app', getDoctrineDatabaseConfigByYamlConfigFile('config/doctrine.yml'));
$config->addExcludes(Helper::getPimcoreDefaultExcludes())->addExclude('table2');

// ...

$config->addDatabase('app', Helper::getTypo3DatabaseConfigByTypo3Context('Development/Docker'));
// or
$config->addDatabase('app', Helper::getDoctrineDatabaseConfigByYamlConfigFile('config/doctrine.docker.yml'));
// ...
@Kanti Kanti added the feature label Feb 18, 2019
@Kanti Kanti added this to the Target 1.x milestone Feb 18, 2019
@Kanti Kanti changed the title Configuration Helper Feature Configuration Helper Feb 18, 2019
@Kanti Kanti modified the milestones: Target 1.x, Target 1.1 Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants