Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update master

  • Loading branch information...
commit 401a49c84bbe6818f33c48d2f8010bdc4f3a2065 1 parent 00f219c
@behcetenuygun behcetenuygun authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 Twig/Extension/FacebookExtension.php
View
9 Twig/Extension/FacebookExtension.php
@@ -38,6 +38,7 @@ public function getFunctions()
return array(
'facebook_initialize' => new \Twig_Function_Method($this, 'renderInitialize', array('is_safe' => array('html'))),
'facebook_login_button' => new \Twig_Function_Method($this, 'renderLoginButton', array('is_safe' => array('html'))),
+ 'facebook_logout_url' => new \Twig_Function_Method($this, 'renderLogoutUrl', array('is_safe' => array('html'))),
);
}
@@ -66,4 +67,12 @@ public function renderLoginButton($parameters = array(), $name = null)
{
return $this->container->get('fos_facebook.helper')->loginButton($parameters, $name ?: 'FOSFacebookBundle::loginButton.html.twig');
}
+
+ /**
+ * @see FacebookHelper::logoutUrl()
+ */
+ public function renderLogoutUrl($parameters = array(), $name = null)
+ {
+ return $this->container->get('fos_facebook.helper')->logoutUrl($parameters);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.