Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch vicb/fmwk/config (PR #6852)
This PR was squashed before being merged into the master branch (closes #6852). Commits ------- fde7585 [DIC] Better handling of enableable configurations Discussion ---------- [DIC] Better handling of enableable configurations | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no, this feature has not been released yet | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - My definition of bug fix might be discussable. The thing which I think is not discussable is that this PR fixes the semantic - and I think it is important for a "semantic configuration": before this PR, some nodes had `->canBeDisabled` for nodes that were actually disabled by default. Those nodes now have `->canBeEnabled` which sounds right. **Edit: Jan 28, 2013** - history: See [the related comments](symfony/symfony#6829 (comment)). I think Symfony **must** get the configuration right as we can expect of lot of devs to use this as a template when writting their own configuration. @schmittjoh could you please give me your feedback on [this change](https://github.com/symfony/symfony/pull/6852/files#L4R224) considering [the rationale](https://github.com/symfony/symfony/pull/6852/files#L3R7). --------------------------------------------------------------------------- by stof at 2013-01-23T16:10:33Z @vicb your links are broken as they are pointing to the PR creation page --------------------------------------------------------------------------- by stof at 2013-01-23T16:10:55Z and to create a TODO list, it has to be a list first --------------------------------------------------------------------------- by vicb at 2013-01-23T16:31:10Z @stof thanks for reporting the broken links, they are fixed /cc @schmittjoh --------------------------------------------------------------------------- by vicb at 2013-01-23T16:31:50Z @Tobion please submit a PR to my repo, I don't have much time to work on this. Thanks ! --------------------------------------------------------------------------- by vicb at 2013-01-25T15:14:47Z @fabpot @schmittjoh I'd like your feedback on the latest commit, rationale is in the method phpDoc. It better matches what we do now and seem the most sensible thing to do. edit: with this you can no more disable the node explicitly, I have to find a better solution --------------------------------------------------------------------------- by schmittjoh at 2013-01-25T15:20:13Z Looks good. On Fri, Jan 25, 2013 at 4:15 PM, Victor Berchet <notifications@github.com>wrote: > @fabpot <https://github.com/fabpot> @schmittjoh<https://github.com/schmittjoh>I'd like your feedback on the latest commit, rationale is in the method > phpDoc. It better matches what we do now and seem the most sensible thing > to do. > > — > Reply to this email directly or view it on GitHub<symfony/symfony#6852 (comment)>. > > --------------------------------------------------------------------------- by vicb at 2013-01-28T14:37:57Z @fabpot I know I keep insisting on this one and I am sorry for that but I think this should be considered as a bug fix (see the PR header for details) and should be merged in 2.2. I think the Symfony core should be exemplary as it is used by many developers as a template when creating their own bundle. *This PR is no more a WIP and can be merged right now*. In addition to fixing the enableable nodes, this PR contain new UTs and some fixes to the code / tests. --------------------------------------------------------------------------- by fabpot at 2013-01-28T16:43:42Z @vicb As explained in a comment, this is not a BC break as this feature does not exist in 2.1. So, I can make the change to the CHANGELOG if you want after merging, or I can let you make the change. --------------------------------------------------------------------------- by vicb at 2013-01-28T16:46:33Z I am going to change it right now ! --------------------------------------------------------------------------- by vicb at 2013-01-28T16:46:56Z (and thanks for having checked this) --------------------------------------------------------------------------- by vicb at 2013-01-28T16:54:37Z @fabpot I have updated the changelog and the PR header. I am not sure if the commits should be squashed or not. On one side the multiple commits can help understand the changes but on the other side that's a lot of small commits which could pollute history. I let you choose what to do.
- Loading branch information