Open MGatner opened 2 years ago
Maybe keep them both and use an interface to specify the contract and an abstract class as just one implementation thereof?
Shield has figured this out, it would probably make sense to imitate the solution there: https://github.com/codeigniter4/shield/tree/develop/src/Authentication/Passwords
So we should modify ValidatorInterface.php :
Is that's all or am i missing something else?
BaseValidator
andValidatorInterface
provide almost identical offerings. One of these should be deprecated, depending on whether the intent. Either:abstract public function check()
(less restriction, more changes elsewhere)Either solution should account for the following:
CodeIgniter\Entity
which is deprecatedEntity
input when most validators requireUser
PasswordValidator
is not a valid interface class because of 2)