8000 ASSET-PathPackage-Enhancement - Use parent getUrl method instead of … · symfony/symfony@0c2a2bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c2a2bf

Browse files
author
tiecoders
committed
ASSET-PathPackage-Enhancement - Use parent getUrl method instead of duplicating code.
1 parent 50c22b3 commit 0c2a2bf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/Asset/PathPackage.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ public function __construct(string $basePath, VersionStrategyInterface $versionS
5353
*/
5454
public function getUrl($path)
5555
{
56-
if ($this->isAbsoluteUrl($path)) {
57-
return $path;
58-
}
59-
60-
$versionedPath = $this->getVersionStrategy()->applyVersion($path);
56+
$versionedPath = parent::getUrl($path);
6157

6258
// if absolute or begins with /, we're done
6359
if ($this->isAbsoluteUrl($versionedPath) || ($versionedPath && '/' === $versionedPath[0])) {

0 commit comments

Comments
 (0)
0