ZF2 An Invalid Factory Was Registered
问题 I've the following classes and my module config in ZF2 application and it is giving the below error: While attempting to create applicationformuserform(alias: Application\Form \UserForm) an invalid factory was registered for this instance type. UserFormFactory.php <?php namespace Application\Factory\Form; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; use Application\Form\UserForm; class UserFormFactory implements FactoryInterface { public function