| 1 | <?php |
||
| 9 | class AssetManager extends \yii\web\AssetManager |
||
| 10 | {
|
||
| 11 | private $_hashes = []; |
||
| 12 | private $_counter = 0; |
||
| 13 | /** |
||
| 14 | * @inheritdoc |
||
| 15 | */ |
||
| 16 | public function hash($path) {
|
||
| 17 | if (!isset($this->_hashes[$path])) {
|
||
| 18 | $this->_hashes[$path] = $this->_counter++; |
||
| 19 | } |
||
| 20 | return $this->_hashes[$path]; |
||
| 21 | } |
||
| 22 | } |