Simplify callback arguments? #5
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#5
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?
I don't know if it would be easy to do, but would be great if we don't need to write all the default arguments to a hook?
Would it possible to move the arguments to the class instead to repeat in the users code?
I don't know if possible in that context. but maybe it's possible to inject the original method arguments / data by "use" behind the
function () use [...]in Hook.php or build a single object like$eventwith all the data?