1 | <?php |
||
10 | class Extension extends CompilerExtension |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Default configuration |
||
15 | * @var array |
||
16 | */ |
||
17 | public $defaults = [ |
||
18 | 'wwwDir' => '%wwwDir%', |
||
19 | 'versions' => AssetMacro::VERSIONS_AUTODETECT, |
||
20 | 'autodetectPaths' => [ |
||
21 | 'busters.json', |
||
22 | 'versions.json', |
||
23 | 'rev-manifest.json', |
||
24 | ], |
||
25 | 'missingAsset' => 'exception', // exception, notice, or ignore |
||
26 | 'missingVersion' => 'ignore', // exception, notice, or ignore |
||
27 | ]; |
||
28 | |||
29 | |||
30 | public function beforeCompile() |
||
46 | |||
47 | |||
48 | /** |
||
49 | * @param string $key |
||
50 | * @param array $choices |
||
51 | */ |
||
52 | 1 | private function validateChoices($key, array $choices) |
|
63 | |||
64 | } |
||
65 |