Exemplo n.º 1
0
 /**
  * @param \DOMElement $element
  * @param string $attribute
  * @param ReportRouting $reportRouting
  */
 protected function prepareAsset(\DOMElement $element, $attribute, ReportRouting $reportRouting)
 {
     $asset = $element->getAttribute($attribute);
     if ($asset) {
         $asset = $this->sanitizeAsset($asset);
         if ($this->assetNeedsTransform($asset)) {
             $asset = $reportRouting->getPath($asset);
         }
         $element->setAttribute($attribute, $asset);
     }
 }