-
-
Notifications
You must be signed in to change notification settings - Fork 186
Pass $used flag to route:after hook #2418 #2425
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
Conversation
edb7828 to
27c78f3
Compare
|
Damn, something broke... |
27c78f3 to
b8dffcd
Compare
|
@lukasbestle We actually have a small breaking change: |
|
Hm, that's unfortunate. Maybe we should instead use the opportunity to replace all those hook arguments ( Of course this would be something for 3.4 then, but I'd say it would be better to have this breaking-change than to change the param order. The issue with the new param order is that it won't make existing code fail, it would only make it not work properly. If we instead cut down on the arguments, existing hooks will fail hard because they aren't passed enough arguments. |
|
I changed the milestone |
|
Requires #2541 for a proper implementation. |
|
What's the state of this @distantnative & @lukasbestle? Is it compatible with #2541 ? |
|
@bastianallgeier Now that you have merged the other PR, we can update this to work with the changed structure. I will finalize this PR soon. |
b8dffcd to
27bd709
Compare
|
I have now rebased this PR against Because the new But because hooks can now request just the arguments they need, the order doesn't matter in the end – it's just relevant for the underlying |
|
❤️ I started calling it |
|
@distantnative I agree. Feel free to change it. :) |
|
@distantnative @lukasbestle $final sounds more intuitive to me as well. |
|
@distantnative Could you please make the change? As I'm not the author of the PR, I don't have full access to the Travis build etc. |
|
Will do |
27bd709 to
e29bf3e
Compare
|
Done, ready. |
lukasbestle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Describe the PR
Add
$usedflag as new last parameter to theroute:afterhook that represents whether the route was actually used or$this→next()was called inside the route.Related issues
route:aftershould not be called on$route→next()#2418Ready?
composer fix