Move order to third parameter and make optional? #4
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sciactive/hookphp#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Maybe it would be easier to have "order" as third and optional parameter for addCallback()?
Default could be "0" and be executed after the original method? More than one hook with the same order will be executed with the same priority?
"HookBefore" could be done by negative order and a higher positive value would be executed later ("hookAfter").