yiisoft / validator

Yii validator library
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
110 stars 36 forks source link

Extract rule name and options to separate collector #683

Closed vjik closed 3 months ago

vjik commented 3 months ago

My suggestion:

1) Remove method RuleInterface::getName(). 2) Remove interface RuleWithOptionsInterface. 3) Remove RulesDumper. 4) Create new RulesConvertor that would can be configured for usage with custom rules also.

Benefits:

vjik commented 3 months ago

Duplicate #682