In a controller's execute
method, has there been any clear guidance from the Magento core team if client developers should
Be using the individual
PageFactory
,JsonFactory
,RawFactory
, etc objectsOr using the more generic
Magento\Framework\Controller\ResultFactory
object along with theResultFactory::_TYPE
constants
when they want to instantiate an object to return?
If you're not familiar with the issues/confusion around this, I'm talking about the things in the following post. It's not clear if, going forward, Magento's supporting all these methods, or if there's a particular style/technique they prefer (and will support) going forward.