Skip to content

[WebProfilerBundle] Avoid missing method when using __invoke on a controller #12958

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
Dec 12, 2014

Conversation

thewilkybarkid
Copy link
Contributor

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

2.6 added support for using __invoke on controllers, but the profiler toolbar still expects a method name, leading to:

image

This PR changes it to only include the method section/double dots if the method name is included (and the link is moved to the class name).

@javiereguiluz
Copy link
Member

@thewilkybarkid thanks for your PR! I love these quick wins!

By the way, your message ends abruptly, so it's been probably cut unintentionally: "This PR changes it to only include the method section/double dots if the method name is included. This does mean that there is no link included... (so either the )"

@thewilkybarkid
Copy link
Contributor Author

@javiereguiluz Fixed now. Got to that point, fixed the code, didn't fix the text. 😃

@stof
Copy link
Member

stof commented Dec 12, 2014

👍

@fabpot
Copy link
Member

fabpot commented Dec 12, 2014

Thank you @thewilkybarkid.

@fabpot fabpot merged commit fb87558 into symfony:2.6 Dec 12, 2014
fabpot added a commit that referenced this pull request Dec 12, 2014
…voke on a controller (thewilkybarkid)

This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfilerBundle] Avoid missing method when using __invoke on a controller

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

2.6 added support for using `__invoke` on controllers, but the profiler toolbar still expects a method name, leading to:

![image](https://cloud.githubusercontent.com/assets/1784740/5412993/4553c4da-820a-11e4-899c-50ef9f330cdd.png)

This PR changes it to only include the method section/double dots if the method name is included (and the `link` is moved to the class name).

Commits
-------

fb87558 Avoid missing method when using __invoke
@thewilkybarkid thewilkybarkid deleted the invoke-toolbar branch December 12, 2014 18:36
ostrolucky pushed a commit to ostrolucky/symfony that referenced this pull request Mar 25, 2018
…ng __invoke on a controller (thewilkybarkid)

This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfilerBundle] Avoid missing method when using __invoke on a controller

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

2.6 added support for using `__invoke` on controllers, but the profiler toolbar still expects a method name, leading to:

![image](https://cloud.githubusercontent.com/assets/1784740/5412993/4553c4da-820a-11e4-899c-50ef9f330cdd.png)

This PR changes it to only include the method section/double dots if the method name is included (and the `link` is moved to the class name).

Commits
-------

fb87558 Avoid missing method when using __invoke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants