Fix phpdoc for UrlNormalizer [skip ci] (#12417)

This commit is contained in:
Robert Korulczyk
2016-08-31 22:16:49 +02:00
committed by Alexander Makarov
parent ecfaa9875d
commit 6a9e9df8d6
2 changed files with 5 additions and 4 deletions

View File

@@ -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' => [

View File

@@ -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
*/