Hi I'am new in ZF2 and just wanna to add new walidator for PESEL. I create a ZendValidatePesel.php file in /library/Zend/Validator and copied the content from StringLength.php file. Changing class name of course for ZendValidatePesel. Now, I'am trying to use it like:
'validators' => array(
array(
'name' => 'ZendValidatePesel',
'options' => array(
'encoding' => 'UTF-8',
'min' => 11,
'max' => 11,
),
),
),
and got error:
Plik:
D:\xampp\htdocs\ZendHospital\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php:529
Komunikat:
Zend\Validator\ValidatorPluginManager::get was unable to fetch or create an instance for ZendValidatePesel
Please help me..