From c88b9b7afa9aa2d49930a569d87dd4ccdfd51d6e Mon Sep 17 00:00:00 2001 From: Rob Allen Date: Mon, 29 Jun 2015 08:24:04 +0100 Subject: [PATCH] Rename url_for to path_for --- src/Twig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Twig.php b/src/Twig.php index 504b1b9..401b320 100644 --- a/src/Twig.php +++ b/src/Twig.php @@ -67,7 +67,7 @@ public function __construct($path, $settings = []) public function register(\Pimple\Container $container) { // Register urlFor Twig function - $this->environment->addFunction(new \Twig_SimpleFunction('url_for', function ($name, $data = [], $queryParams = []) use ($container) { + $this->environment->addFunction(new \Twig_SimpleFunction('path_for', function ($name, $data = [], $queryParams = []) use ($container) { return $container['router']->pathFor($name, $data, $queryParams); }));