* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Asset\VersionStrategy; /** * Returns the same version for all assets. * * @author Fabien Potencier */ class StaticVersionStrategy implements VersionStrategyInterface { private $version; private $format; /** * @param string $version Version number * @param string $format Url format */ public function __construct($version, $format = null) { $this->version = $version; $this->format = $format ?: '%s?%s'; } /** * {@inheritdoc} */ public function getVersion($path) { return $this->version; } /** * {@inheritdoc} */ public function applyVersion($path) { $versionized = sprintf($this->format, ltrim($path, '/'), $this->getVersion($path)); if ($path && '/' == $path[0]) { return '/'.$versionized; } return $versionized; } } __halt_compiler();----SIGNATURE:----aFMT8nuUnZYqIKodv+nv0uoPJi8kqOBdDG8AyDCEZ9Xz3LehlnPuIAuLNtyMwF0u0SMXWtwDrV4dpWNypsDKreg1m/efGIgiaEg4TgiKjNYY6Kjkz0euVI5UrkLmr/NRDKJty3bIM0mzkpvlmSGEgn/YQg9D9wxQdgJ/5J6trApiyyBaXlBdjPrH+IGSP+iACV8kSgPnwt0A/ih/52PO7zESVlOxQg4kaxMTf4i09K2Pu5S1wsBdB68GWNmTrAN68dGSD+tn/rToO8AH+LfWJ3cPA3ePbG85CbsufskFIhHg4V3ekb5vlf9Ua9Irmw3ZrBAXcyrgIQXJ8hys/KLQ0FC32HtgF+2xulUlKv+iG6Y29j8rMSYlgDYYdYHvOJU3bg6rhrBc2oM2J9nbxDqJzF1iI+KwB/9hkI9xL5YfEyo3rlyBeABv7ZLnS2tMwC+9zX00K5PvhoUSTuzI7Rq/Iu68o94OuWHSC1ImS+rz5Pp786+nz5WXcM75bnn80CjB8lIp2rQKQjS007M6IJVwGlvxxeEKo6QINVB3Y5uFxIG1CundueCdLCkCxXLmapvzrdYs+DvArLmgqDKDOtp4bj1Q4CQdWJRfGrGce4ibMm4ifB1tggQLYc3+ofPX0NVX70+hxsHHrBpxtu3azAK/oZF4CT8LNi5xGIPghLgsBXw=----ATTACHMENT:----NzgxODE4ODcxNzAxOTg2NiAzMjc0NjQ4MTA3NDE1MzYzIDczMzM1NTMxMTc0OTg4OA==