X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/packbundle/blobdiff_plain/0fb8794285efee3e8627a0d7f38eee2e68525c15..643ec0e1f2d4738984caed4753fe6c4f95302ca8:/Asset/PathPackage.php diff --git a/Asset/PathPackage.php b/Asset/PathPackage.php index 5fa69e2..50c6172 100644 --- a/Asset/PathPackage.php +++ b/Asset/PathPackage.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\Package; use Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface; /** * (@inheritdoc) */ -class PathPackage extends BasePackage { +class PathPackage extends Package { //The base path protected $basePath; @@ -17,7 +17,7 @@ class PathPackage extends BasePackage { * {@inheritdoc} */ public function __construct(string $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context = null) { - parent::__construct($basePath, $versionStrategy, $context); + parent::__construct($versionStrategy, $context); if (!$basePath) { $this->basePath = '/'; @@ -31,6 +31,8 @@ class PathPackage extends BasePackage { } /** + * @todo Try retrive public dir from the member function BundleNameBundle::getPublicDir() return value ? + * @xxx see https://symfony.com/doc/current/bundles.html#overridding-the-bundle-directory-structure * {@inheritdoc} */ public function getUrl($path) {