public function registerUndefinedFilterCallback(callable
$callable): void
{ $this->filterCallbacks
[] =
$callable;
} public function addNodeVisitor(NodeVisitorInterface
$visitor): void
{ if ($this->initialized
) { throw new \
LogicException('Unable to add a node visitor as extensions have already been initialized.'
);
} $this->staging->
addNodeVisitor($visitor);
} /**
* @return NodeVisitorInterface[]
*/
public function getNodeVisitors(): array
{ if (!
$this->initialized
) { $this->
initExtensions();
}