Fixing missing plugins

This commit is contained in:
Pavel Shevaev 2023-10-27 11:21:46 +03:00
parent ee905cea9b
commit dee3cdd25e
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}