Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class AssetHelper extends Helper |
||
23 | { |
||
24 | /** |
||
25 | * Array having asset names as keys and revved asset names as values |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $assets = []; |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | public function initialize(array $config): void |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Retrieve `revved` asset name if found in manifest or return canonical asset name otherwise |
||
46 | * |
||
47 | * @param string $name Canonical asset name (un-revved) |
||
48 | * @return string |
||
49 | */ |
||
50 | public function get(string $name): string |
||
59 |