X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/0fb8794285efee3e8627a0d7f38eee2e68525c15..1c2fee3d6e5f6ca683098b889c12a56901234662:/Asset/PathPackage.php?ds=sidebyside 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) {