1 | <?php |
||
9 | class AssetExtensionHelper extends BaseExtensionHelper |
||
10 | { |
||
11 | 20 | public function __construct($alias, ContainerBuilder $container, $loader) |
|
12 | { |
||
13 | 20 | parent::__construct($alias, $container); |
|
14 | |||
15 | 20 | $loader->load('asset.yml'); |
|
16 | 20 | } |
|
17 | |||
18 | 10 | public function getPackageTag() |
|
22 | |||
23 | 19 | protected function getPackageDefinition($isUrl) |
|
24 | { |
||
25 | 19 | return $isUrl |
|
26 | 4 | ? new DefinitionDecorator($this->namespaceService('asset.package.url')) |
|
27 | 19 | : new DefinitionDecorator($this->namespaceService('asset.package.path')) |
|
28 | ; |
||
29 | } |
||
30 | |||
31 | 19 | protected function getFallbackPackageDefinition() |
|
35 | |||
36 | 17 | protected function createEmptyVersionStrategy($packageName) |
|
37 | { |
||
42 | |||
43 | 4 | protected function createManifestVersionStrategy($packageName, $config) |
|
49 | |||
50 | 19 | private function createAssetVersionStrategy($packageName, $versionStrategy) |
|
60 | } |
||
61 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.