protected function registerAssetablePack(ServiceProviderInterface $provider) { if ($provider instanceof AssetablePackInterface) { $formulae = $provider->getAsseticFormulae($this); foreach ($formulae as &$formula) { foreach ($formula[0] as &$input) { if ($input[0] != '/') { //relative path $input = $provider->getAssetsPath($this) . '/' . $input; } } } if (empty($this['assetic.formulae'])) { $this['assetic.formulae'] = []; } $this['assetic.formulae'] = array_merge($this['assetic.formulae'], $formulae); } }