Created
April 9, 2015 20:14
-
-
Save jflefebvre/6846d2125a67bbefb696 to your computer and use it in GitHub Desktop.
Twig Timer config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app['twig'] = $app->extend("twig", function (\Twig_Environment $twig, Silex\Application $app) { | |
$twig->addExtension(new MyApp\Helpers\TwigTimer($app)); | |
return $twig; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment