X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/96853a9e2368e10654799eedb3283052275f1a5f..03e18bcdbca85c9396dec9cc6d5b4b93836ff37a:/Parser/TokenParser.php?ds=inline diff --git a/Parser/TokenParser.php b/Parser/TokenParser.php index 7c3ad41..67e87eb 100644 --- a/Parser/TokenParser.php +++ b/Parser/TokenParser.php @@ -11,6 +11,8 @@ namespace Rapsys\PackBundle\Parser; +use Rapsys\PackBundle\RapsysPackBundle; + use Symfony\Component\Asset\PackageInterface; use Symfony\Component\Filesystem\Exception\IOExceptionInterface; use Symfony\Component\Filesystem\Filesystem; @@ -25,8 +27,6 @@ use Twig\Source; use Twig\Token; use Twig\TokenParser\AbstractTokenParser; -use Rapsys\PackBundle\RapsysPackBundle; - /** * {@inheritdoc} */ @@ -143,7 +143,7 @@ class TokenParser extends AbstractTokenParser { //Deal with generic url if (strpos($inputs[$k], '//') === 0) { //Fix url - $inputs[$k] = ($_ENV['RAPSYSPACK_SCHEME'] ?? 'https://').substr($inputs[$k], 2); + $inputs[$k] = ($_ENV['RAPSYSPACK_SCHEME'] ?? 'https').'://'.substr($inputs[$k], 2); //Deal with non url path } elseif (strpos($inputs[$k], '://') === false) { //Check if we have a bundle path