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

Support for stacking data upon redirect #26

Open
spotman opened this issue Oct 11, 2018 · 3 comments
Open

Support for stacking data upon redirect #26

spotman opened this issue Oct 11, 2018 · 3 comments

Comments

@spotman
Copy link

spotman commented Oct 11, 2018

It would be nice to save debug info if response has Location header or it's status code is between 300 and 400. Debug bar can handle this via $debugBar->stackData() call.

More details here http://phpdebugbar.com/docs/ajax-and-stack.html#stacked-data

@snapshotpl
Copy link
Member

@spotman I don't know what exactly I can do with this

@spotman
Copy link
Author

spotman commented May 6, 2019

@spotman I don't know what exactly I can do with this

Doing this way all DebugBar data will be saved in case of redirect (Post-Redirect-Get pattern, for example). But there is no direct access to DebugBar instance from middleware, only JavascriptRenderer is injected in the constructor.

@spotman
Copy link
Author

spotman commented Feb 10, 2020

@snapshotpl is there any progress on this issue? Will you accept a PR with a tiny non-BC-break fix?

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

No branches or pull requests

2 participants