/**
  * @param ServiceLocatorInterface $services
  * @return Factory
  */
 protected function getInputFilterFactory(ServiceLocatorInterface $services)
 {
     $factory = new \Zend\InputFilter\Factory();
     $factory->getDefaultFilterChain()->setPluginManager($this->getFilterPluginManager($services));
     $factory->getDefaultValidatorChain()->setPluginManager($this->getValidatorPluginManager($services));
     return $factory;
 }