You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 $event with all the data?
$event->object // original object
$event->arguments() // all arguments
$event->arguments(0) // first argument
$event->arguments('name') // argument by name
[...]
The text was updated successfully, but these errors were encountered:
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$event
with all the data?The text was updated successfully, but these errors were encountered: