30 lines
585 B
PHP
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;
|
|
}
|
|
}
|