You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation states that a factory stored in a class would implement FactoryInterface but it doesn't reference which one. In ZF3 there still exists the ZF2 FactoryInterface which requires a 'createService' method while the ZF3 interface requires '__invoke'.
It is confusing to still have the ZF2 implementation out there when the clear direction in the docs in ZF3. Perhaps it should be removed?
Uhm, thats all right by the way. There is no specific namespace given and since the new FactoryInterface is located under Zend\ServiceManager\Factory\FactoryInterface, there is no requirement for implementing the old Zend\ServiceManager\FactoryInterface which defined the createService method.
But yes, the lack of the use statement in the top of the snippet might lead to the wrong Interface tho.
The documentation states that a factory stored in a class would implement FactoryInterface but it doesn't reference which one. In ZF3 there still exists the ZF2 FactoryInterface which requires a 'createService' method while the ZF3 interface requires '__invoke'.
It is confusing to still have the ZF2 implementation out there when the clear direction in the docs in ZF3. Perhaps it should be removed?
Originally posted by @robob4him at zendframework/zend-servicemanager#144
The text was updated successfully, but these errors were encountered: