Skip to content

Instantly share code, notes, and snippets.

@mnapoli
Last active October 4, 2018 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnapoli/f7be0cae5e2f7c9f92f2e2cd9ad6fbb0 to your computer and use it in GitHub Desktop.
Save mnapoli/f7be0cae5e2f7c9f92f2e2cd9ad6fbb0 to your computer and use it in GitHub Desktop.
<?php
// See https://wiki.php.net/rfc/named_params
return new TwigConfig(
paths => [
'%kernel.project_dir%/vendor/acme/foo-bar/templates' => 'foo_bar',
],
autoescape => true,
strictVariables => false,
date => new TwigDateConfig(
format => 'd.m.Y, H:i:s',
interval_format => '%%d days',
),
);
twig:
paths:
'%kernel.project_dir%/vendor/acme/foo-bar/templates': foo_bar
autoescape: true
strict_variables: false
date:
format: d.m.Y, H:i:s
interval_format: '%%d days'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment