{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13912","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13912/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13912/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13912/events","html_url":"https://github.com/symfony/symfony/pull/13912","id":60826294,"number":13912,"title":"[DependencyInjection] Highest precedence for user parameters","user":{"login":"lyrixx","id":408368,"avatar_url":"https://avatars.githubusercontent.com/u/408368?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-12T14:24:35Z","updated_at":"2015-04-03T09:08:53Z","closed_at":"2015-03-19T16:12:08Z","pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/13912","html_url":"https://github.com/symfony/symfony/pull/13912","diff_url":"https://github.com/symfony/symfony/pull/13912.diff","patch_url":"https://github.com/symfony/symfony/pull/13912.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | ~\r\n| License       | MIT\r\n| Doc PR        | ~\r\n\r\nIf `router.request_context.host` is defined in `parameters.yml` and if this\r\nkey is used in `globals` section of twig bundle then the value registered in the\r\nDIC/parameters is the default value (`localhost`).\r\n\r\nIt occurs because generally the framework bundle is defined before the twig\r\nbundle. So after the first loop, the (user) value registered in the\r\n`ContainerBuilder` is overridden by the default value of the framework bundle.\r\nAnd so, when it comes the time to process twig bundle, the last one gets the\r\ndefault value, and not the user value.\r\n\r\nThis patch force the merge of default value, but give an highest precedence of\r\nuser parameters for each extensions."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/89229927","html_url":"https://github.com/symfony/symfony/pull/13912#issuecomment-89229927","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13912","id":89229927,"user":{"login":"murnieza","id":1662148,"avatar_url":"https://avatars.githubusercontent.com/u/1662148?v=3","gravatar_id":"","url":"https://api.github.com/users/murnieza","html_url":"https://github.com/murnieza","followers_url":"https://api.github.com/users/murnieza/followers","following_url":"https://api.github.com/users/murnieza/following{/other_user}","gists_url":"https://api.github.com/users/murnieza/gists{/gist_id}","starred_url":"https://api.github.com/users/murnieza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murnieza/subscriptions","organizations_url":"https://api.github.com/users/murnieza/orgs","repos_url":"https://api.github.com/users/murnieza/repos","events_url":"https://api.github.com/users/murnieza/events{/privacy}","received_events_url":"https://api.github.com/users/murnieza/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T09:08:53Z","updated_at":"2015-04-03T09:08:53Z","body":"Isn't this breaking BC?"}}