Skip to content

Commit 41dcf38

Browse files
Merge pull request #1118 from joekarasek/feature/twig-php-renderer-options
feat: pass additional configuration into twig-php engine
2 parents ec50b62 + dff5a78 commit 41dcf38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/engine-twig-php/lib/engine_twig_php.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const engine_twig_php = {
4444
process.exit(1);
4545
}
4646

47-
const { namespaces, alterTwigEnv, relativeFrom } = config.engines.twig;
47+
const { namespaces, alterTwigEnv, relativeFrom, ...rest } = config.engines.twig;
4848

4949
// Schema on config object being passed in:
5050
// https://github.com/basaltinc/twig-renderer/blob/master/config.schema.json
@@ -55,6 +55,7 @@ const engine_twig_php = {
5555
},
5656
relativeFrom,
5757
alterTwigEnv,
58+
...rest,
5859
});
5960

6061
// Preserve the namespaces (after recursively adding nested folders) from the config so we can use them later to evaluate partials.

0 commit comments

Comments
 (0)