Skip to content

Commit

Permalink
Merge pull request #10 from brandonkelly/patch-1
Browse files Browse the repository at this point in the history
Use registerTwigExtension()
  • Loading branch information
marionnewlevant authored Aug 24, 2018
2 parents 852bfb0 + f8b12c5 commit 753dae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public function init()

// Custom initialization code goes here...
// Add in our Twig extensions
\Craft::$app->view->twig->addExtension(new \marionnewlevant\twigperversion\twigextensions\TwigPerversionTwigExtension());
\Craft::$app->view->registerTwigExtension(new \marionnewlevant\twigperversion\twigextensions\TwigPerversionTwigExtension());
}
}
}

0 comments on commit 753dae0

Please sign in to comment.