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

Merging Phalcon\Config\Adapter\Ini #1066

Closed
viktoras25 opened this issue Aug 12, 2013 · 3 comments
Closed

Merging Phalcon\Config\Adapter\Ini #1066

viktoras25 opened this issue Aug 12, 2013 · 3 comments

Comments

@viktoras25
Copy link
Contributor

<?php

// 3.ini
// [test]
// a = 1
//
// 4.ini
// [test]
// b = 2

$config = new \Phalcon\Config\Adapter\Ini("3.ini");
$config2 = new \Phalcon\Config\Adapter\Ini("4.ini");

$config->merge($config2);

print_r($config);

//Phalcon\Config\Adapter\Ini Object
//(
//    [test] => Phalcon\Config Object
//        (
//            [b] => 2
//        )
//
//)

Is it intended behavior to overwrite section entirely? I would expect them to merge.
Phalcon Version 1.2.3

@dreamsxin
Copy link
Contributor

Same #1024

@viktoras25
Copy link
Contributor Author

Oh, sorry, haven't noticed.

@dreamsxin
Copy link
Contributor

Does not matter, I just add up the connection :)
I often repeat Submit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants