Fixing missing plugins
This commit is contained in:
parent
ee905cea9b
commit
dee3cdd25e
|
@ -42,9 +42,11 @@ function codegen(
|
|||
{
|
||||
foreach($options['plugins'] as $plugin)
|
||||
$plugin->init($meta, $twig);
|
||||
|
||||
$twig->addGlobal('plugins', $options['plugins']);
|
||||
}
|
||||
else
|
||||
$options['plugins'] = array();
|
||||
|
||||
$twig->addGlobal('plugins', $options['plugins']);
|
||||
|
||||
return $twig->render('codegen_autobind.twig', $options);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue