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

Allow escape for period in config nested keys #3525

Open
wants to merge 1 commit into
base: master
from

Conversation

@PEMapModder
Copy link
Collaborator

commented Sep 26, 2015

Expected result:

{
  "a": {
    "b.c": "b period c",
    "b": {
      "c": "b slash c"
    }
  }
}
$config = new Config("abc.json", Config::JSON);
var_dump($config->getNested('a.b\.c')); // string(10) "b period c"
var_dump($config->getNested("a.b.c")); // string(9) "b slash c"

Note: this mechanism isn't fully tested.

@SOF3

SOF3 approved these changes Nov 3, 2016

@jasonwynn10

This comment has been minimized.

Copy link

commented Mar 21, 2017

@SOF3 I think this can be used in pmmp's version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.