From 6a9e9df8d6dc560091a9a5118dd8a4e97ef94de9 Mon Sep 17 00:00:00 2001 From: Robert Korulczyk Date: Wed, 31 Aug 2016 22:16:49 +0200 Subject: [PATCH] Fix phpdoc for UrlNormalizer [skip ci] (#12417) --- docs/guide/runtime-routing.md | 2 +- framework/web/UrlNormalizer.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/guide/runtime-routing.md b/docs/guide/runtime-routing.md index 500899255c..f41a71c4a1 100644 --- a/docs/guide/runtime-routing.md +++ b/docs/guide/runtime-routing.md @@ -537,7 +537,7 @@ from URL manager. You can set [[yii\web\UrlManager::$normalizer|UrlManager::$nor 'enableStrictParsing' => true, 'suffix' => '.html', 'normalizer' => [ - 'normalizer' => 'app\web\UrlNormalizer', + 'normalizer' => 'yii\web\UrlNormalizer', 'action' => UrlNormalizer::ACTION_REDIRECT_TEMPORARY, // use temporary redirection instead of permanent ], 'rules' => [ diff --git a/framework/web/UrlNormalizer.php b/framework/web/UrlNormalizer.php index c5a5c8292f..49d97f4c95 100644 --- a/framework/web/UrlNormalizer.php +++ b/framework/web/UrlNormalizer.php @@ -71,7 +71,7 @@ class UrlNormalizer extends Object /** * Performs normalization action for the specified $route. - * @param $route route for normalization + * @param string $route route for normalization * @return array normalized route * @throws InvalidConfigException if invalid normalization action is used * @throws UrlNormalizerRedirectException if normalization requires redirection @@ -94,8 +94,9 @@ class UrlNormalizer extends Object /** * Normalizes specified pathInfo. - * @param $pathInfo string pathInfo for normalization - * @param $normalized boolean if specified, this variable will be set to `true` if $pathInfo + * @param string $pathInfo pathInfo for normalization + * @param string $suffix current rule suffix + * @param boolean $normalized if specified, this variable will be set to `true` if $pathInfo * was changed during normalization * @return string normalized pathInfo */