3 ms·
Definitely possible, but that's a bit "magic". It's nicer not to have to rely on methods being named exactly a certain way. There was a discussion on reddit ab
by francislavoie 6y ago
Definitely possible, but that's a bit "magic". It's nicer not to have to rely on methods being named exactly a certain way.
There was a discussion on reddit about this exact same thing, shows that attributes lets you bind multiple events to the same listener more easily: https://www.reddit.com/r/PHP/comments/jgkp2r/php_8_before_and_after_stitcherio/g9r8edt/?utm_source=reddit&utm_medium=web2x&context=3 https://www.reddit.com/r/PHP/comments/jgkp2r/php_8_before_an...