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
_configure_database.php no longer works #7590
Comments
Yes it does seem to be broken. For 4.0.1 we can repair this re-using the old |
It seems easy to fix; Make CoreKernel::getDatabaseConfig() set the config into a global just before calling DatabaseAdapterRegistry::autoconfigure();, and then return that global immediately after. In 4.1 / 5.0 we should have autoconfigure() take the config as a parameter, and return it in place of a global. |
Would I be wrong in thinking that as $databaseConfig in CoreKernel::getDatabaseConfig no longer uses "global" that _configure_database.php (DatabaseAdapterRegistry) can no longer update the database config?
Trying to use Sqlite for tests but it insists on using a file instead of memory.
PRs
The text was updated successfully, but these errors were encountered: