Skip to content

Commit a966897

Browse files
authored
Let plugins twig extensions to load nicely
Set addNodeVisitor to a lower priority, so other plugins can CRUD twig extensions.
1 parent 67b437f commit a966897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleksip/DataTransformPlugin/PatternLabListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class PatternLabListener extends Listener
2222
public function __construct()
2323
{
2424
$this->addListener('patternData.codeHelperStart', 'dataTransformer');
25-
$this->addListener('twigPatternLoader.customize', 'addNodeVisitor');
25+
$this->addListener('twigPatternLoader.customize', 'addNodeVisitor', -99);
2626
if ($this->isVerbose()) {
2727
Console::writeLine('data transform plugin listeners added...');
2828
}

0 commit comments

Comments
 (0)