Folgender Code klappt bei mir einwandfrei: <?php use Doctrine\Common\Collections\ArrayCollection;
class Shopware_Plugins_Frontend_Thomas_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
public function install()
{
$this->subscribeEvent( 'Theme\_Compiler\_Collect\_Plugin\_Javascript', 'addJavascriptFiles' ); return true; } /\*\* \* Provides an ArrayCollection for js compressing \* @param Enlight\_Event\_EventArgs $args \* \* @return ArrayCollection \*/ public function addJavascriptFiles(\Enlight\_Event\_EventArgs $args) { $js = \_\_DIR\_\_ . '/Views/frontend/\_public/src/js/test.js'; return new ArrayCollection(array($js)); } }