public static function create(Config $config, Composer $composer, PackageInterface $package, $installDir = null, $section = 'ignore-files')
    {
        $installDir = static::getInstallDir($composer, $package, $installDir);
        $manager = new IgnoreManager($installDir);
        $config = $config->getArray($section);

        foreach ($config as $packageName => $patterns) {
            if ($packageName === $package->getName()) {
                static::addPatterns($manager, $patterns);

                break;
            }
        }

        return $manager;
    }
public static function create(Config $config, Composer $composer, PackageInterface $package, $installDir = null, $section = 'ignore-files')
    {
        $installDir = static::getInstallDir($composer, $package, $installDir);
        $manager = new IgnoreManager($installDir);
        $config = $config->getArray($section);

        foreach ($config as $packageName => $patterns) {
            if ($packageName === $package->getName()) {
                static::addPatterns($manager, $patterns);

                break;
            }
        }

        return $manager;
    }
public static function create ( Config $ config , Composer $ composer , PackageInterface $ package , $ installDir = null , $ section = 'ignore-files' ) { $ installDir = static :: getInstallDir ( $ composer , $ package , $ installDir ) ; $ manager = new IgnoreManager ( $ installDir ) ; $ config = $ config -> getArray ( $ section ) ; foreach ( $ config as $ packageName => $ patterns ) { if ( $ packageName === $ package -> getName ( ) ) { static :: addPatterns ( $ manager , $ patterns ) ; break ; } } return $ manager ; }
Create a ignore manager.

@param Config           $config     The plugin config
@param Composer         $composer   The composer instance
@param PackageInterface $package    The package instance
@param null|string      $installDir The custom installation directory
@param null|string      $section    The config section of ignore patterns

@return IgnoreManager
Create a ignore manager .