Skip to content

Commit

Permalink
return an array of the right kind of objects for Twig Extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangpound committed Dec 19, 2015
1 parent 2af2c35 commit 9cd6c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/JobQueueExtension.php
Expand Up @@ -14,14 +14,14 @@ public function __construct(array $generators = array())
public function getTests()
{
return array(
new \Twig_SimpleFilter('jms_job_queue_linkable', array($this, 'isLinkable'))
new \Twig_SimpleTest('jms_job_queue_linkable', array($this, 'isLinkable'))
);
}

public function getFunctions()
{
return array(
new \Twig_SimpleFilter('jms_job_queue_path', array($this, 'generatePath'), array('is_safe' => array('html' => true)))
new \Twig_SimpleFunction('jms_job_queue_path', array($this, 'generatePath'), array('is_safe' => array('html' => true)))
);
}

Expand Down

0 comments on commit 9cd6c7e

Please sign in to comment.