Permalink
Browse files

-

  • Loading branch information...
1 parent 2cd6e18 commit 493d60aa4d0969320804af580a1116c655e17fb5 @noelg committed Dec 2, 2010
Showing with 1 addition and 21 deletions.
  1. +1 −12 Extension/FacebookExtension.php
  2. +0 −9 TokenParser/FacebookTokenParser.php
@@ -4,19 +4,8 @@
use Bundle\FacebookBundle\TokenParser\FacebookTokenParser;
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
/**
*
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class FacebookExtension extends \Twig_Extension
{
@@ -40,7 +29,7 @@ public function getAppId()
public function getTokenParsers()
{
return array(
- // {% login_button %}
+ // {% facebook_connect_button %}
new FacebookTokenParser(),
);
}
@@ -5,14 +5,6 @@
use Bundle\FacebookBundle\Node\FacebookConnectNode;
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
class FacebookTokenParser extends \Twig_TokenParser
{
/**
@@ -24,7 +16,6 @@ class FacebookTokenParser extends \Twig_TokenParser
*/
public function parse(\Twig_Token $token)
{
- //$tag = $this->parser->getExpressionParser()->parseExpression();
$this->parser->getStream()->expect(\Twig_Token::BLOCK_END_TYPE);
return new FaceBookConnectNode(array(), array(), $token->getLine());

0 comments on commit 493d60a

Please sign in to comment.