View more context

 

Mo

I want to test what happens when I use an particular extension hook

Mo

can I pass that a lambda function or something?

kinglozzer

I suppose in theory you could create an anonymous class, then DataObject::add_extension($anonymousClass)

kinglozzer

I have absolutely no idea if that would work 😛

kinglozzer

~Sorry, Extensible::add_extension(DataObject::class, $anonymousClass)~ the first one is fine