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

Support for specific user instances to be resolved#32407

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

Closed
gmponos wants to merge1 commit intosymfony:4.4fromgmponos:patch-4

Conversation

@gmponos
Copy link
Contributor

QA
Branch?4.4
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

[ ] - Need to add tests
[ ] - Need to update changelog

At the moment if my application supports multiple users I have to do this:

public function __invoke(UserInterface $user): Response {    ...    if ($user instance of JwtUser) {    }    ....}

With the proposed change I can autowire directly the specific UserInstance

public function __invoke(JWTUser $user): Response

if you have any objections let me know in order not to proceed with the tests.

@linaori
Copy link
Contributor

Please see#26971

@gmponos
Copy link
ContributorAuthor

Closing.. as there was already a PR for this and the discussion can be continued there

@gmponosgmponos closed thisJul 6, 2019
@gmponosgmponos deleted the patch-4 branchJuly 30, 2020 10:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@gmponos@linaori@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp