private resolveAssetPath ( string $asset, string $template_file, Twig_Token $token ) | ||
$asset | string | |
$template_file | string | |
$token | Twig_Token |
private function resolveAssetPath($asset, $template_file, $token)
{
if (false === ($asset_path = $this->tracker->resolveResourcePath($asset))) {
throw new \RuntimeException(sprintf('The file "%s" referenced in "%s" at line %d could not be resolved.', $asset, $template_file, $token->getLine()));
}
return $asset_path;
}