/**
  * Inject custom Asset package to Kernel assets helper
  */
 public function onKernelRequest()
 {
     foreach ($this->kernel->getBundles() as $bundle) {
         $bundlePathPackage = new BundlePathPackage($this->versionStrategy);
         $bundlePathPackage->setBundlePath($bundle->getName());
         $this->assetsPackages->addPackage($bundle->getName(), $bundlePathPackage);
     }
 }
 /**
  * @param string $expectedBundlePath
  * @param string $bundle
  *
  * @dataProvider setBundlePathData
  */
 public function testSetBundlePath($expectedBundlePath, $bundle)
 {
     $this->bundlePathPackage->setBundlePath($bundle);
     $this->assertEquals($expectedBundlePath, $this->bundlePathPackage->getBundleDir());
 }