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

[5.8] Responsable check moved to Route Pipeline #29263

Closed
wants to merge 6 commits into from
Closed

[5.8] Responsable check moved to Route Pipeline #29263

wants to merge 6 commits into from

Conversation

DarkGhostHunter
Copy link
Contributor

@DarkGhostHunter DarkGhostHunter commented Jul 23, 2019

This is a more elegant solution to #24156.

Responsable check is now done on the Route Pipeline. This cleans the Base Pipeline class, avoiding unwanted behaviour when using it with Responsable objects.

Also added a test to check if a Middleware that returns a Responsable (instead of keep going with the pipeline) transforms it to a Response.

Pardon the commits, I was sure has hell I was following the style and had my 5 seconds of fury on the keyboard. Also, I don't know how to combine all the commits into one.

Reponsable check is now done on the Route Pipeline. This cleans the Base Pipeline class, avoiding unwanted behaviour when using it with Responsable objects.

Also added a test to check if a Middleware that returns a Reponsable transforms it to a Response.
@seriquynh
Copy link
Contributor

I have thought about this situation for a long time and agree with this PR. Not sure it will be merged.

@DarkGhostHunter
Copy link
Contributor Author

Why not? It may break something?

@taylorotwell
Copy link
Member

It's a breaking change on the Pipeline class. It could possibly be done on master branch.

@DarkGhostHunter
Copy link
Contributor Author

I will redirect my efforts to the master branch then.

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.

3 participants