Skip to content

Commit

Permalink
service modifying best practice
Browse files Browse the repository at this point in the history
  • Loading branch information
Gábor Fási committed Jul 19, 2013
1 parent f1ee64e commit 019c84c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@

$app["session"]->start();

$app["twig"]->addGlobal("fb", $app["fb.options"]);
$app["twig"] = $app->share($app->extend("twig", function (\Twig_Environment $twig, Silex\Application $app) {
$twig->addGlobal("fb", $app["fb.options"]);
}));

return $app;

0 comments on commit 019c84c

Please sign in to comment.