Skip to content

Update profiler.rst #15775

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
Sep 6, 2021
Merged

Update profiler.rst #15775

merged 1 commit into from
Sep 6, 2021

Conversation

erickr
Copy link
Contributor

@erickr erickr commented Sep 5, 2021

the getKernel() method is available in $event rather than $this, however the $event->getKernel() refers to the \Symfony\Component\HttpKernel\HttpKernel which does not have the isDebug()-method.

Perhaps a full event subscriber class could be included to make it more complete?

Same problem applies on 5.3, 5.4 and 6.0 as well.

the getKernel() method is available in $event rather than $this.
Perhaps a full event subscriber class could be included to make it more complete?
@javiereguiluz
Copy link
Member

Good catch Eric! You are right that we could show the entire subscriber class ... but this is an advance article so hopefully most readers won't need that. We can revisit this in the future if we receive more feedback.

About the upper branches, after merging your PR will "upmerge" it to all supported branches, so your fix will be everywhere without you having to do anything else.

Thanks and congrats on your first Symfony Docs contribution 🎉

@javiereguiluz javiereguiluz merged commit 9ba6e27 into symfony:4.4 Sep 6, 2021
@erickr
Copy link
Contributor Author

erickr commented Sep 6, 2021

@javiereguiluz That was a quick reply! :)
As I mentioned, the fix is still broken due to the isDebug() method does not exist on HttpKernel.

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.

3 participants