Skip to content

Commit 898bb61

Browse files
committed
Merge branch '2.2' into 2.3
* 2.2: added missing support for the new output API in PHP 5.4+ Fixed bug introduced in #8675 made the filesystem loader compatible with Twig 2.0 bumped Symfony version to 2.2.6 updated VERSION for 2.2.5 update CONTRIBUTORS for 2.2.5 updated CHANGELOG for 2.2.5 replaced deprecated Twig features Conflicts: src/Symfony/Bridge/Twig/Extension/FormExtension.php src/Symfony/Bridge/Twig/Extension/RoutingExtension.php src/Symfony/Component/HttpKernel/Kernel.php
2 parents 78991d5 + 2491239 commit 898bb61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Twig/Extension/LogoutUrlExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public function __construct(LogoutUrlHelper $helper)
3838
public function getFunctions()
3939
{
4040
return array(
41-
'logout_url' => new \Twig_Function_Method($this, 'getLogoutUrl'),
42-
'logout_path' => new \Twig_Function_Method($this, 'getLogoutPath'),
41+
new \Twig_SimpleFunction('logout_url', array($this, 'getLogoutUrl')),
42+
new \Twig_SimpleFunction('logout_path', array($this, 'getLogoutPath')),
4343
);
4444
}
4545

0 commit comments

Comments
 (0)