Move order to third parameter and make optional? #4

Open
opened 2019-12-31 13:04:39 -08:00 by pwFoo · 0 comments
pwFoo commented 2019-12-31 13:04:39 -08:00 (Migrated from github.com)

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").

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").
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sciactive/hookphp#4
No description provided.