/** * @see \Zend\ServiceManager\FactoryInterface::createService() * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator * @return \Blog\Form\CommentForm */ public function createService(ServiceLocatorInterface $serviceLocator) { $oForm = new CommentForm('comment'); return $oForm->setInputFilter(new CommentInputFilter()); }