From: Raphaƫl Gertz Date: Thu, 28 Nov 2019 18:22:04 +0000 (+0100) Subject: Rename PathPackage in PackPackage to avoid problem with upstream name X-Git-Tag: 0.1.4~4 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/eb1482a08e2c5041a74506fcfd35fa41cef70155?ds=inline;hp=a951f3cdbb523bf6598477d87d49aa454ab4818d Rename PathPackage in PackPackage to avoid problem with upstream name Fix configuration to match new naming --- diff --git a/Asset/PathPackage.php b/Asset/PackPackage.php similarity index 94% rename from Asset/PathPackage.php rename to Asset/PackPackage.php index 1a975c5..64b345c 100644 --- a/Asset/PathPackage.php +++ b/Asset/PackPackage.php @@ -3,13 +3,13 @@ namespace Rapsys\PackBundle\Asset; use Symfony\Component\Asset\Context\ContextInterface; -use Symfony\Component\Asset\PathPackage as BasePackage; +use Symfony\Component\Asset\PathPackage; use Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface; /** * (@inheritdoc) */ -class PathPackage extends BasePackage { +class PackPackage extends PathPackage { //The base path protected $basePath; diff --git a/Resources/config/packages/rapsys_pack.yaml b/Resources/config/packages/rapsys_pack.yaml index da45381..d0dc6a2 100644 --- a/Resources/config/packages/rapsys_pack.yaml +++ b/Resources/config/packages/rapsys_pack.yaml @@ -2,7 +2,7 @@ services: #Register assets pack package assets.pack_package: - class: Rapsys\PackBundle\Asset\PathPackage + class: Rapsys\PackBundle\Asset\PackPackage arguments: [ '/', '@assets.empty_version_strategy', '@assets.context' ] #Register twig pack extension rapsys_pack.twig.pack_extension: