Skip to content

Conversation

@ogizanagi
Copy link
Contributor

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets symfony/recipes#46
License MIT
Doc PR N/A

As spotted in symfony/recipes#46, there is no reason to call registerBundles on the kernel instance, as it's already booted. So we just have to use getBundles instead and registerBundles can be implemented in a non-rewindable way, as done with flex.

@javiereguiluz javiereguiluz added this to the 2.7 milestone May 11, 2017
@fabpot
Copy link
Member

fabpot commented May 11, 2017

Thank you @ogizanagi.

@fabpot fabpot merged commit 040edfe into symfony:2.7 May 11, 2017
fabpot added a commit that referenced this pull request May 11, 2017
…ering bundles twice (ogizanagi)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] AbstractConfigCommand: do not try registering bundles twice

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/recipes#46
| License       | MIT
| Doc PR        | N/A

As spotted in symfony/recipes#46, there is no reason to call `registerBundles` on the kernel instance, as it's already booted. So we just have to use `getBundles` instead and `registerBundles` can be implemented in a non-rewindable way, as done with flex.

Commits
-------

040edfe [FrameworkBundle] AbstractConfigCommand: do not try registering bundles twice
@ogizanagi ogizanagi deleted the fix/2.7/fwb/asbtract_config_cmd_get_bundles branch May 11, 2017 16:40
@fabpot fabpot mentioned this pull request May 17, 2017
This was referenced May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants