Files
kupshop/bundles/KupShop/KupShopBundle/Util/System/CDNVersionStrategy.php
2025-08-02 16:30:27 +02:00

30 lines
585 B
PHP

<?php
namespace KupShop\KupShopBundle\Util\System;
use Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface;
class CDNVersionStrategy implements VersionStrategyInterface
{
/** @var UrlFinder */
protected $urlFinder;
public function getVersion($path): string
{
return '';
}
public function applyVersion($path): string
{
return $this->urlFinder->staticUrlAbsolute($path);
}
/**
* @required
*/
public function setUrlFinder(UrlFinder $urlFinder): void
{
$this->urlFinder = $urlFinder;
}
}