mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 06:40:59 +08:00
22 lines
450 B
PHP
22 lines
450 B
PHP
<?php
|
|
/**
|
|
* @link https://www.yiiframework.com/
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
* @license https://www.yiiframework.com/license/
|
|
*/
|
|
|
|
namespace yiiunit\framework\web\stubs;
|
|
|
|
use yii\web\UrlRule;
|
|
|
|
class CachedUrlRule extends UrlRule
|
|
{
|
|
public $createCounter = 0;
|
|
|
|
public function createUrl($manager, $route, $params)
|
|
{
|
|
$this->createCounter++;
|
|
return parent::createUrl($manager, $route, $params);
|
|
}
|
|
}
|