Closed arogachev closed 7 months ago
What use as name for rules without name?
If there is an attempt to serialize the rule without name, an exception can be thrown for example.
We may use FQCN as a name
After discussion, we came to the following decision.
getName()
from RuleInterface
to RuleWithOptionsInterface
.RulesDumper
for rules that not implemented RuleWithOptionsInterface
, use rule FQCN as name and empty array as options.RuleWithOptionsInterface
to more correct name.Working on it.
@BoShurik Thanks for your suggestion.
Case - REST API without usage on the frontend, serialization of rules are not required.