-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Phalcon\Config\ConfigFactory::load return same (first one) config for different files #14584
Comments
the same problem, i guess will be with implemented logic suppose that there should be only one instance of each adapter, created with each instance of |
This is because the implementation of the factories uses an internal mapper so that you get the same instance no matter how many times you call I will sort this out tomorrow. Not a difficult fix. |
Addressed in #14592 |
thanks! |
Describe the bug
if you try to load several configs from files (for instance from php) you get config objects with same values.
To Reproduce
config1.php
config2.php
then execute
and result is
Expected behavior
Details
Additional context
as i understand, the trouble is in
Phalcon\Config\ConfigFactory::newInstance()
method:if think it should be like
The text was updated successfully, but these errors were encountered: