From eb1482a08e2c5041a74506fcfd35fa41cef70155 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 28 Nov 2019 19:22:04 +0100 Subject: [PATCH] Rename PathPackage in PackPackage to avoid problem with upstream name Fix configuration to match new naming --- Asset/{PathPackage.php => PackPackage.php} | 4 ++-- Resources/config/packages/rapsys_pack.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename Asset/{PathPackage.php => PackPackage.php} (94%) 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: -- 2.41.1