diff --git a/src/Mandango/Mondator/ClassExtension.php b/src/Mandango/Mondator/ClassExtension.php index 3600d0b..dcea121 100644 --- a/src/Mandango/Mondator/ClassExtension.php +++ b/src/Mandango/Mondator/ClassExtension.php @@ -335,6 +335,7 @@ protected function processTemplate(Definition $definition, $name, array $variabl { $twig = $this->getTwig(); + $variables['extension'] = $this; $variables['options'] = $this->options; $variables['class'] = $this->class; $variables['config_class'] = $this->configClass;