src/ExcludeFilePlugin.php
public function parseAutoloads()
    {
        /** @var Composer $composer */
        $composer = $this->composer;

        /** @var Package $package */
        $package = $composer->getPackage();
        if (!$package) {
            return;
        }

        $exclude = $this->getExcludedFiles($package);

        if (!$exclude) {
            return;
        }

        $filesystem = new Filesystem();
        $config     = $composer->getConfig();
        $vendorPath = $filesystem->normalizePath(realpath(realpath($config->get('vendor-dir'))));
        $exclude    = $this->parseExcludedFiles($exclude, $vendorPath);

        $generator  = $composer->getAutoloadGenerator();
        $packages   = $composer->getRepositoryManager()->getLocalRepository()->getCanonicalPackages();
        $packageMap = $generator->buildPackageMap($composer->getInstallationManager(), $package, $packages);

        $this->filterAutoloads($packageMap, $package, $exclude);
    }
public function parseAutoloads()
    {
        /** @var Composer $composer */
        $composer = $this->composer;

        /** @var Package $package */
        $package = $composer->getPackage();
        if (!$package) {
            return;
        }

        $exclude = $this->getExcludedFiles($package);

        if (!$exclude) {
            return;
        }

        $filesystem = new Filesystem();
        $config     = $composer->getConfig();
        $vendorPath = $filesystem->normalizePath(realpath(realpath($config->get('vendor-dir'))));
        $exclude    = $this->parseExcludedFiles($exclude, $vendorPath);

        $generator  = $composer->getAutoloadGenerator();
        $packages   = $composer->getRepositoryManager()->getLocalRepository()->getCanonicalPackages();
        $packageMap = $generator->buildPackageMap($composer->getInstallationManager(), $package, $packages);

        $this->filterAutoloads($packageMap, $package, $exclude);
    }
public function parseAutoloads ( ) { /** @var Composer $composer */ $ composer = $ this -> composer ; /** @var Package $package */ $ package = $ composer -> getPackage ( ) ; if ( ! $ package ) { return ; } $ exclude = $ this -> getExcludedFiles ( $ package ) ; if ( ! $ exclude ) { return ; } $ filesystem = new Filesystem ( ) ; $ config = $ composer -> getConfig ( ) ; $ vendorPath = $ filesystem -> normalizePath ( realpath ( realpath ( $ config -> get ( 'vendor-dir' ) ) ) ) ; $ exclude = $ this -> parseExcludedFiles ( $ exclude , $ vendorPath ) ; $ generator = $ composer -> getAutoloadGenerator ( ) ; $ packages = $ composer -> getRepositoryManager ( ) -> getLocalRepository ( ) -> getCanonicalPackages ( ) ; $ packageMap = $ generator -> buildPackageMap ( $ composer -> getInstallationManager ( ) , $ package , $ packages ) ; $ this -> filterAutoloads ( $ packageMap , $ package , $ exclude ) ; }
Parse the vendor 'files' to be included before the autoloader is dumped.

@return void
Parse the vendor files to be included before the autoloader is dumped .