nystudio107 /
craft-retour
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Retour plugin for Craft CMS |
||
| 4 | * |
||
| 5 | * Retour allows you to intelligently redirect legacy URLs, so that you don't |
||
| 6 | * lose SEO value when rebuilding & restructuring a website |
||
| 7 | * |
||
| 8 | * @link https://nystudio107.com/ |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 9 | * @copyright Copyright (c) 2018 nystudio107 |
||
|
0 ignored issues
–
show
|
|||
| 10 | */ |
||
|
0 ignored issues
–
show
|
|||
| 11 | |||
| 12 | namespace nystudio107\retour\assetbundles\retour; |
||
| 13 | |||
| 14 | use craft\web\AssetBundle; |
||
| 15 | use craft\web\assets\cp\CpAsset; |
||
| 16 | use craft\web\assets\vue\VueAsset; |
||
| 17 | |||
| 18 | /** |
||
|
0 ignored issues
–
show
|
|||
| 19 | * @author nystudio107 |
||
|
0 ignored issues
–
show
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
|
|||
| 20 | * @package Retour |
||
|
0 ignored issues
–
show
|
|||
| 21 | * @since 3.0.0 |
||
|
0 ignored issues
–
show
|
|||
| 22 | */ |
||
|
0 ignored issues
–
show
|
|||
| 23 | class RetourAsset extends AssetBundle |
||
| 24 | { |
||
| 25 | // Public Methods |
||
| 26 | // ========================================================================= |
||
| 27 | |||
| 28 | /** |
||
|
0 ignored issues
–
show
|
|||
| 29 | * @inheritdoc |
||
| 30 | */ |
||
|
0 ignored issues
–
show
|
|||
| 31 | public function init(): void |
||
| 32 | { |
||
| 33 | $this->sourcePath = '@nystudio107/retour/web/assets/dist'; |
||
| 34 | $this->depends = [ |
||
| 35 | CpAsset::class, |
||
| 36 | VueAsset::class, |
||
| 37 | ]; |
||
| 38 | |||
| 39 | parent::init(); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |