From 86b29370786de35cc40e3424e09c3cf48551ee28 Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 6 Aug 2018 12:50:34 +0200 Subject: added comments and renamed short method to url generators --- src/Routing/UrlGenerator.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Routing/UrlGenerator.php') diff --git a/src/Routing/UrlGenerator.php b/src/Routing/UrlGenerator.php index 8dd52271..a8fc88c1 100644 --- a/src/Routing/UrlGenerator.php +++ b/src/Routing/UrlGenerator.php @@ -2,14 +2,19 @@ namespace Engelsystem\Routing; +/** + * Provides urls when rewriting on the webserver is enabled. (default) + * + * The urls have the form /? + */ class UrlGenerator implements UrlGeneratorInterface { /** * @param string $path * @param array $parameters - * @return string + * @return string url in the form [app url]/[path]?[parameters] */ - public function to($path, $parameters = []) + public function link_to($path, $parameters = []) { $path = '/' . ltrim($path, '/'); $request = app('request'); -- cgit v1.2.3-54-g00ecf