Skip to content

Commit

Permalink
[AsseticBundle] fixed twig classes for api changes in assetic
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswallsmith committed Apr 1, 2011
1 parent 5465510 commit 98b3a2d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/AsseticBundle/Twig/DynamicNode.php
Expand Up @@ -28,7 +28,7 @@ protected function getAssetUrlNode(\Twig_NodeInterface $body)
return new \Twig_Node_Expression_Function(
new \Twig_Node_Expression_Name('path', $body->getLine()),
new \Twig_Node(array(
new \Twig_Node_Expression_Constant('assetic_'.$this->getAttribute('asset_name'), $body->getLine()),
new \Twig_Node_Expression_Constant('assetic_'.$this->getAttribute('name'), $body->getLine()),
)),
$body->getLine()
);
Expand Down
6 changes: 3 additions & 3 deletions src/Symfony/Bundle/AsseticBundle/Twig/DynamicTokenParser.php
Expand Up @@ -14,14 +14,14 @@
use Assetic\Extension\Twig\AsseticTokenParser;

/**
* Parses the {% assets %} tag.
* Parses an Assetic tag.
*
* @author Kris Wallsmith <kris.wallsmith@symfony.com>
*/
class DynamicTokenParser extends AsseticTokenParser
{
static protected function createNode(\Twig_NodeInterface $body, array $sourceUrls, $targetUrl, array $filterNames, $assetName, $debug = false, $lineno = 0, $tag = null)
static protected function createNode(\Twig_NodeInterface $body, array $inputs, array $filters, array $attributes, $lineno = 0, $tag = null)
{
return new DynamicNode($body, $sourceUrls, $targetUrl, $filterNames, $assetName, $debug, $lineno, $tag);
return new DynamicNode($body, $inputs, $filters, $attributes, $lineno, $tag);
}
}
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/AsseticBundle/Twig/StaticExtension.php
Expand Up @@ -15,7 +15,7 @@
use Assetic\Factory\AssetFactory;

/**
* The Static extension is used when use_controllers is disabled.
* The static extension is used when use_controllers is disabled.
*
* @author Kris Wallsmith <kris.wallsmith@symfony.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/AsseticBundle/Twig/StaticNode.php
Expand Up @@ -28,7 +28,7 @@ protected function getAssetUrlNode(\Twig_NodeInterface $body)
return new \Twig_Node_Expression_Function(
new \Twig_Node_Expression_Name('asset', $body->getLine()),
new \Twig_Node(array(
new \Twig_Node_Expression_Constant($this->getAttribute('target_url'), $body->getLine()),
new \Twig_Node_Expression_Constant($this->getAttribute('output'), $body->getLine()),
)),
$body->getLine()
);
Expand Down
6 changes: 3 additions & 3 deletions src/Symfony/Bundle/AsseticBundle/Twig/StaticTokenParser.php
Expand Up @@ -14,14 +14,14 @@
use Assetic\Extension\Twig\AsseticTokenParser;

/**
* Parses the {% assets %} tag.
* Parses an Assetic tag.
*
* @author Kris Wallsmith <kris.wallsmith@symfony.com>
*/
class StaticTokenParser extends AsseticTokenParser
{
static protected function createNode(\Twig_NodeInterface $body, array $sourceUrls, $targetUrl, array $filterNames, $assetName, $debug = false, $lineno = 0, $tag = null)
static protected function createNode(\Twig_NodeInterface $body, array $inputs, array $filters, array $attributes, $lineno = 0, $tag = null)
{
return new StaticNode($body, $sourceUrls, $targetUrl, $filterNames, $assetName, $debug, $lineno, $tag);
return new StaticNode($body, $inputs, $filters, $attributes, $lineno, $tag);
}
}

0 comments on commit 98b3a2d

Please sign in to comment.