To unsubscribe from this group and stop receiving emails from it, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
--
--
Ok, so is there actually a decision on this?
It seems clear to me that `new Object()` is out of favour, but what about create vs injector?I think using the create syntax is lovely. Writing Injector::inst()->create('ClassName') is so ugly and ClassName::create() does the same thing (bar this odd strong_classes stuff, which needs to be removed) in a much prettier way.
It's fairly important from a documentation point of view too, because that needs to be consistent and really dictated in the core coding conventions.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
Visit this group at http://groups.google.com/group/silverstripe-dev.
For more options, visit https://groups.google.com/d/optout.
At the end of the day, I'm not sure that we'll get a one-size-fits-all answer here, but we do need to have an answer to the question "what do we put in documentation, examples, and core code?"
As you can see, there can be issues with using ::create() everywhere so I don't think its a simple decision of saying 'yes' or no'.
Daniel Hensby Director |
e: daniel...@betterbrief.co.uk t: 020 7183 9266 w: http://www.betterbrief.co.uk |
--
--
You received this message because you are subscribed to a topic in the Google Groups "SilverStripe Core Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/silverstripe-dev/IgOLurk87hc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
Visit this group at http://groups.google.com/group/silverstripe-dev.
For more options, visit https://groups.google.com/d/optout.