Skip to content
Browse files

added extension as variable to twig

  • Loading branch information...
1 parent 6188158 commit ed3d5aedf152f46ad5e0dcc20056b182f52e227c @pablodip pablodip committed Jul 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Mandango/Mondator/ClassExtension.php
View
1 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;

0 comments on commit ed3d5ae

Please sign in to comment.
Something went wrong with that request. Please try again.