* * 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:----fl58LEm0O8B2HjsotUaM5wqYiGyZr8BgxXwkxu7Q5XdstyrLAUqMO9OGJk0N10YwrEgTlzoTayfyx9Usvb8LIAV+jN3BpiUOQjZqVIrsppsNLuq68xhECeYCgJfvd48YhdB4K4iRNZHmms+jEcZWj/FG2+b8cYlM9E7pX4OBzHYMK7X/scpEL2u2JPE4ETkbYydVKraJDotyN9FNSg6yEfb+zmlJmaK5enphU/ietgcbGa44o/BZPBoj3a4YRGvQFYPfT48nGvXH7bS4/4PxK0IdJkCahelmwCX9HpuXqhCvnk0rZLjmb4EbqmhRkEhTHJsG2jjTqDNJPN6NQhJObSRwrRB0nvbcSxPFzPXYH2PAwb65bgUQsQ/wWkQ/T8vOemPVy3O1F/tdwk8TwOu8Zs1laLtqTOzHKt7+Hu1wRJbkI9Fi41kcyTM+hOlTNmY8o3wn5DSsKZ1+XF2rr4cWUjeAqIKv+1aIjZln3ZydyY1X++l9g+O5S9iny++wfm8Cr1gSWdZEmDFBxJYWdiBqVKhaEtpYOjRCF6AvGsP5Y8XV6L/tWFhEPflo942g27OxdNNbX/I+tN2dQyLj5IZ4XZWmzLBx1vJtSvYKc+NMVWxcnqxcX0YYe45gmupc/ZDE6YlqaEWs0JcPukuN2D08tycoh5i08oBD87sXlBR7mn4=----ATTACHMENT:----MjM0MjU2Njc2MzgyNDMwNCA4MjE2MzE2NDg1MTE3NDEgODkxNDc5NTA3NDI1MTk1Mw==