36         $this->assetRepo = $assetRepo;
    48         if (preg_match_all(self::VAR_REGEX, 
$path, $matches, PREG_SET_ORDER)) {
    50             foreach ($matches as $match) {
    51                 if (!isset($replacements[$match[0]])) {
    52                     $replacements[$match[0]] = $this->getPlaceholderValue($match[1]);
    55             $path = str_replace(array_keys($replacements), $replacements, 
$path);
    66     public function getPlaceholderValue($placeholder)
    69         $context = $this->assetRepo->getStaticViewFileContext();
    71         switch ($placeholder) {
    73                 return '{{' . self::VAR_BASE_URL_PATH . 
'}}' . $context->getAreaCode() .
    74                     ($context->getThemePath() ? 
'/' . $context->getThemePath() . 
'/' : 
'') .
 
__construct(Asset\Repository $assetRepo)
 
convertVariableNotation($path)