Completed
Push — master ( b97c15...2a91fa )
by Loban
03:36
created

UrlManager::createUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * @link https://github.com/LAV45/yii2-translated-behavior
4
 * @copyright Copyright (c) 2015 LAV45!
5
 * @author Alexey Loban <[email protected]>
6
 * @license http://opensource.org/licenses/BSD-3-Clause
7
 */
8
9
namespace lav45\translate\web;
10
11
/**
12
 * Class UrlManager
13
 * @package lav45\translate\web
14
 */
15
class UrlManager extends \yii\web\UrlManager
16
{
17
    use LanguageUrlTrait;
18
19
    /**
20
     * @var array
21
     */
22
    public $ruleConfig = ['class' => 'lav45\translate\web\UrlRule'];
23
24
    /**
25
     * @inheritdoc
26
     */
27 1
    public function createUrl($params)
28
    {
29 1
        $params = $this->checkLanguageParams($params);
30 1
        return parent::createUrl($params);
31
    }
32
}