public static function getPath(InstallationManager $installationManager, AssetManagerInterface $assetManager, PackageInterface $package, array $configPackages = array())
    {
        $path = null;

        if (static::isAsset($package, $configPackages)) {
            $installPath = $installationManager->getInstallPath($package);
            $filename = $installPath.'/'.$assetManager->getPackageName();
            $path = file_exists($filename) ? str_replace('\\', '/', realpath($filename)) : null;
        }

        return $path;
    }
public static function getPath(InstallationManager $installationManager, AssetManagerInterface $assetManager, PackageInterface $package, array $configPackages = array())
    {
        $path = null;

        if (static::isAsset($package, $configPackages)) {
            $installPath = $installationManager->getInstallPath($package);
            $filename = $installPath.'/'.$assetManager->getPackageName();
            $path = file_exists($filename) ? str_replace('\\', '/', realpath($filename)) : null;
        }

        return $path;
    }
public static function getPath ( InstallationManager $ installationManager , AssetManagerInterface $ assetManager , PackageInterface $ package , array $ configPackages = array ( ) ) { $ path = null ; if ( static :: isAsset ( $ package , $ configPackages ) ) { $ installPath = $ installationManager -> getInstallPath ( $ package ) ; $ filename = $ installPath . '/' . $ assetManager -> getPackageName ( ) ; $ path = file_exists ( $ filename ) ? str_replace ( '\\' , '/' , realpath ( $ filename ) ) : null ; } return $ path ; }
Get the path of asset file.

@param InstallationManager   $installationManager The installation manager
@param AssetManagerInterface $assetManager        The asset manager
@param PackageInterface      $package             The package
@param array                 $configPackages      The packages defined in config

@return null|string
Get the path of asset file .