Add getOperatorTokens() to ExpressionParserInterface to separate operator token registration from parser identity

This commit is contained in:
Fabien Potencier
2026-02-23 23:12:24 +01:00
parent 2ec5479d4c
commit e5eb95d0d7
10 changed files with 115 additions and 29 deletions
@@ -27,4 +27,9 @@ abstract class AbstractExpressionParser implements ExpressionParserInterface
{
return [];
}
public function getOperatorTokens(): array
{
return [$this->getName(), ...$this->getAliases()];
}
}