Skip to content

Commit

Permalink
added extension as variable to twig
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodip committed Jul 29, 2012
1 parent 6188158 commit ed3d5ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mandango/Mondator/ClassExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed3d5ae

Please sign in to comment.