Twig icon indicating copy to clipboard operation
Twig copied to clipboard

The deprecation of the getOperators method is not reflected in docs

Open mcetkovsky opened this issue 1 month ago • 3 comments

The getOperators method is marked as deprecated in the code base, but the official documentation lists this method as the only way to add new operators.

mcetkovsky avatar Nov 07 '25 10:11 mcetkovsky

Well it could be argued that this is the least of the problems of the documentation: the fact that it says that getOperators purpose is to add operators is way more concerning.

ericmorand avatar Nov 07 '25 12:11 ericmorand

@ericmorand getOperators in ExtensionInterface was indeed about adding operators to the environment when that extension is registered. This part of the documentation in in the Creating an Extension section

stof avatar Nov 07 '25 12:11 stof

I can argue that it's well named as it gets the operators from the extension.

fabpot avatar Nov 09 '25 09:11 fabpot