diff options
author | msquare <msquare@notrademark.de> | 2018-08-06 12:50:34 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-08-06 12:50:34 +0200 |
commit | 86b29370786de35cc40e3424e09c3cf48551ee28 (patch) | |
tree | 7d605f5b24c864d91c50bfe9df333f95d272f7b5 /src/Routing/UrlGenerator.php | |
parent | 5a83d4fb8b7d2fc561a2b841ab6981df02837b2d (diff) |
added comments and renamed short method to url generators
Diffstat (limited to 'src/Routing/UrlGenerator.php')
-rw-r--r-- | src/Routing/UrlGenerator.php | 9 |
1 files changed, 7 insertions, 2 deletions
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 <app url>/<path>?<parameters> + */ 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'); |