Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Messenger] Fix incompatibility with FrameworkBundle <4.3.1#32792

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:4.3fromchalasr:fix-consume-cmd-def
Aug 5, 2019

Conversation

@chalasr
Copy link
Member

QA
Branch?4.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#32738
LicenseMIT
Doc PR-

Aims to fix an edge case where you install (or upgrade to) symfony/messenger >=4.3.1 while having symfony/framework-bundle <4.3.1 installed.

Copy link
Contributor

@linaorilinaori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think an extra addition should include a type check on the argument in the command, as it's never enforced. While I don't think this is a common case, using it without the framework bundle should also give a clear error rather than an invalid method call run-time.

if ($routableBusinstanceof ContainerInterface) {$routableBus =newRoutableMessageBus($routableBus);}elseif (!$routableBusinstanceof RoutableMessageBus) {thrownew ...;}

/**
* @param RoutableMessageBus $routableBus
*/
publicfunction__construct($routableBus,ContainerInterface$receiverLocator,LoggerInterface$logger =null,array$receiverNames = [],/* ContainerInterface */$retryStrategyLocator =null,EventDispatcherInterface$eventDispatcher =null)
{
// to be deprecated in 4.4
if ($routableBusinstanceof ContainerInterface) {
$routableBus =newRoutableMessageBus($routableBus);
}

chalasr reacted with thumbs up emoji
@chalasr
Copy link
MemberAuthor

@linaori check added, thanks!

@fabpot
Copy link
Member

Thank you@chalasr.

@fabpotfabpot merged commit5d73970 intosymfony:4.3Aug 5, 2019
fabpot added a commit that referenced this pull requestAug 5, 2019
…1 (chalasr)This PR was merged into the 4.3 branch.Discussion----------[Messenger] Fix incompatibility with FrameworkBundle <4.3.1| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#32738| License       | MIT| Doc PR        | -Aims to fix an edge case where you install (or upgrade to) symfony/messenger >=4.3.1 while having symfony/framework-bundle <4.3.1 installed.Commits-------5d73970 [Messenger] Fix incompatibility with FrameworkBundle <4.3.1
@chalasrchalasr deleted the fix-consume-cmd-def branchAugust 5, 2019 06:09
@fabpotfabpot mentioned this pull requestAug 26, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@linaorilinaorilinaori requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

4 participants

@chalasr@fabpot@linaori@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp