Skip to content
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

Add little caution to add service id for @Route annotation #6734

Merged
merged 2 commits into from
Jul 9, 2016

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Jul 8, 2016

Finishes #6258

Original PR description:

I just ran into this problem and it took me a while. Without the @Route(service="myid") annotation, the controller was always being instantiated without any arguments, completely ignoring my service-definition.

Not sure how far back/forward this applies to other versions.

@javiereguiluz
Copy link
Member

👍

Status: reviewed

@wouterj wouterj merged commit 93bb21c into 2.7 Jul 9, 2016
wouterj added a commit that referenced this pull request Jul 9, 2016
…n (DHager, WouterJ)

This PR was merged into the 2.7 branch.

Discussion
----------

Add little caution to add service id for @route annotation

Finishes #6258

Original PR description:

 > I just ran into this problem and it took me a while. Without the `@Route(service="myid")` annotation, the controller was *always* being instantiated without any arguments, completely ignoring my service-definition.

 > Not sure how far back/forward this applies to other versions.

Commits
-------

93bb21c Merge caution with annotations tip
ac6b008 Add warning about a pitfall where the controller seems to be instantiated without using the service-definition
@wouterj wouterj deleted the DHager-route_annotation_warning branch July 9, 2016 08:53
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.

4 participants