Rename PathPackage in PackPackage to avoid problem with upstream name
authorRaphaël Gertz <git@rapsys.eu>
Thu, 28 Nov 2019 18:22:04 +0000 (19:22 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 28 Nov 2019 18:22:04 +0000 (19:22 +0100)
Fix configuration to match new naming

Asset/PackPackage.php [moved from Asset/PathPackage.php with 94% similarity]
Resources/config/packages/rapsys_pack.yaml

similarity index 94%
rename from Asset/PathPackage.php
rename to Asset/PackPackage.php
index 1a975c5..64b345c 100644 (file)
@@ -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;
 
index da45381..d0dc6a2 100644 (file)
@@ -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: