Hi :) i have this in my module.config.php:

    'validators' => array(
      'factories' => array(
            'Application\Validator\SecretCode' => function($sm) {
              $validator = new \Application\Validator\SecretCode;
             
$validator->setUserMapper($sm->get('Application\Mapper\User'));
              return $validator;
            },
      )
    ),

But the validator is never created via the factory, so the mapper is never
injected, what am I doing wrong?



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Problem-with-validator-factory-tp4659596.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to