Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messager] Simplified MessageBus::__construct() #32340

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

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Jul 3, 2019

Q A
Branch? 4.3
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

The third path deals with generator (or other king of iterator that are

not an IteratorAggregate). It means, very few cases in practice

The previous code saved one object on the first call of self::dispatch()
by replacing it at runtime. More over, this object (anon. class) is very
light in memory.

The performance optimization (even if fun) is not useful here. Let's
make the code readable to everyone.

@fabpot
Copy link
Member

fabpot commented Jul 3, 2019

That's for 4.4.

@nicolas-grekas nicolas-grekas added this to the next milestone Jul 3, 2019
The third path deals with generator (or other king of iterator that are
not an IteratorAggregate). It means, very few cases in practice

The previous code saved one object on the first call of `self::dispatch()`
by replacing it at runtime. More over, this object (anon. class) is very
light in memory.

The performance optimization (even if fun) is not useful here. Let's
make the code readable to everyone.
@lyrixx lyrixx force-pushed the messenger-message-bus-simplified branch from 8fcfcce to 6b5671f Compare July 3, 2019 13:46
@lyrixx lyrixx requested review from dunglas and xabbuh as code owners July 3, 2019 13:46
@lyrixx
Copy link
Member Author

lyrixx commented Jul 3, 2019

@fabpot PR updated.

@lyrixx lyrixx changed the base branch from 4.3 to 4.4 July 3, 2019 13:46
@fabpot
Copy link
Member

fabpot commented Jul 3, 2019

Thank you @lyrixx.

@fabpot fabpot merged commit 6b5671f into symfony:4.4 Jul 3, 2019
fabpot added a commit that referenced this pull request Jul 3, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

[Messager] Simplified MessageBus::__construct()

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

The third path deals with generator (or other king of iterator that are

not an IteratorAggregate). It means, very few cases in practice

The previous code saved one object on the first call of `self::dispatch()`
by replacing it at runtime. More over, this object (anon. class) is very
light in memory.

The performance optimization (even if fun) is not useful here. Let's
make the code readable to everyone.

Commits
-------

6b5671f [Messager] Simplified MessageBus::__construct()
@lyrixx lyrixx deleted the messenger-message-bus-simplified branch July 3, 2019 16:35
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
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