Hi! Can anyone explain me the difference when naming methods ::create*() and ::generate*(). Both are synonyms but using different names across framework is kind of confusing.
We do Form::createView() but Controller::generateUrl(). There are generate:* cli command which are used to create some cool stuff. But there is Request::create(). There is also a Validator::buildDefault and methods named ::get* in some places which are actually factoring something. Maybe some naming convention is required? I can assume that "generate" is more like a mechanical work but "create" is something that human does (calls API) to get a new instance of something. So ::create() methods in API are cool even when generate:* cli command exist, but Controller::generateUrl() method is breaking all this logic. What do you think? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
