Message of the day:
Welcome to SilverStripe | Current stable: https://goo.gl/C4F1T9 | Feature requests: https://goo.gl/EcQ34L | Community Forum: https://forum.silverstripe.org | StripeCon EU 2019! https://stripecon.eu
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
ViewableData isn't the only class to do this, but it is the most common that you'll interface with.
anything that defines
__call (php native 'magic' methods) is what causes things like
->ThisThing to resolve to
ThatClass::getThisThing (in ViewableData)
Injectable is the one that adds the
Now it's traits
Extensible, etc. as @MichalKleiner pointed out.
@Admonish Object was a 'god class' of sorts that allowed for Injector, Extension, and other such "everything needs this" stuff.
I was hoping that it was introduced lower down in silverstripe's class hierarchy
yep, that’s ViewableData magic
I thought it was some silverstripe magic