"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/RoutingExtension.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

RoutingExtension.php  (phplist-3.4.5.tgz):RoutingExtension.php  (phplist-3.4.6.tgz)
skipping to change at line 36 skipping to change at line 36
class RoutingExtension extends AbstractExtension class RoutingExtension extends AbstractExtension
{ {
private $generator; private $generator;
public function __construct(UrlGeneratorInterface $generator) public function __construct(UrlGeneratorInterface $generator)
{ {
$this->generator = $generator; $this->generator = $generator;
} }
/** /**
* Returns a list of functions to add to the existing list. * {@inheritdoc}
*
* @return array An array of functions
*/ */
public function getFunctions() public function getFunctions()
{ {
return [ return [
new TwigFunction('url', [$this, 'getUrl'], ['is_safe_callback' => [$ this, 'isUrlGenerationSafe']]), new TwigFunction('url', [$this, 'getUrl'], ['is_safe_callback' => [$ this, 'isUrlGenerationSafe']]),
new TwigFunction('path', [$this, 'getPath'], ['is_safe_callback' => [$this, 'isUrlGenerationSafe']]), new TwigFunction('path', [$this, 'getPath'], ['is_safe_callback' => [$this, 'isUrlGenerationSafe']]),
]; ];
} }
/** /**
 End of changes. 1 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)