src/Nooku/Composer/Installer/NookuComponent.php
protected function _copyAssets(PackageInterface $package)
    {
        $path       = rtrim($this->getInstallPath($package), '/');
        $asset_path = $path.'/resources/assets';
        $vendor_dir = dirname(dirname($path));

        // Check for libraries/joomla. vendor directory sits in libraries/ folder in Joomla 3.4+
        $is_joomla = is_dir(dirname($vendor_dir).'/joomla') || is_dir(dirname($vendor_dir).'/libraries/joomla');

        if ($is_joomla && is_dir($asset_path))
        {
            $manifest    = $this->_getKoowaManifest($package);

            $root        = is_dir(dirname($vendor_dir).'/joomla') ? dirname(dirname($vendor_dir)) : dirname($vendor_dir);
            $destination = $root.'/media/koowa/com_'.$manifest->name;

            $this->_copyDirectory($asset_path, $destination);
        }
    }
protected function _copyAssets(PackageInterface $package)
    {
        $path       = rtrim($this->getInstallPath($package), '/');
        $asset_path = $path.'/resources/assets';
        $vendor_dir = dirname(dirname($path));

        // Check for libraries/joomla. vendor directory sits in libraries/ folder in Joomla 3.4+
        $is_joomla = is_dir(dirname($vendor_dir).'/joomla') || is_dir(dirname($vendor_dir).'/libraries/joomla');

        if ($is_joomla && is_dir($asset_path))
        {
            $manifest    = $this->_getKoowaManifest($package);

            $root        = is_dir(dirname($vendor_dir).'/joomla') ? dirname(dirname($vendor_dir)) : dirname($vendor_dir);
            $destination = $root.'/media/koowa/com_'.$manifest->name;

            $this->_copyDirectory($asset_path, $destination);
        }
    }
protected function _copyAssets ( PackageInterface $ package ) { $ path = rtrim ( $ this -> getInstallPath ( $ package ) , '/' ) ; $ asset_path = $ path . '/resources/assets' ; $ vendor_dir = dirname ( dirname ( $ path ) ) ; // Check for libraries/joomla. vendor directory sits in libraries/ folder in Joomla 3.4+ $ is_joomla = is_dir ( dirname ( $ vendor_dir ) . '/joomla' ) || is_dir ( dirname ( $ vendor_dir ) . '/libraries/joomla' ) ; if ( $ is_joomla && is_dir ( $ asset_path ) ) { $ manifest = $ this -> _getKoowaManifest ( $ package ) ; $ root = is_dir ( dirname ( $ vendor_dir ) . '/joomla' ) ? dirname ( dirname ( $ vendor_dir ) ) : dirname ( $ vendor_dir ) ; $ destination = $ root . '/media/koowa/com_' . $ manifest -> name ; $ this -> _copyDirectory ( $ asset_path , $ destination ) ; } }
Copy assets into the media folder if the installation is running in a Joomla context

@param PackageInterface $package
Copy assets into the media folder if the installation is running in a Joomla context