src/Nooku/Composer/Installer/NookuComponent.php
protected function _removeAutoloader(PackageInterface $package)
    {
        $path = $this->_getAutoloaderPath($package);

        if(file_exists($path))
        {
            $contents = file_get_contents($path);

            if (strpos($contents, 'This file has been generated automatically by Composer.') !== false) {
                unlink($path);
            }
        }
    }
protected function _removeAutoloader(PackageInterface $package)
    {
        $path = $this->_getAutoloaderPath($package);

        if(file_exists($path))
        {
            $contents = file_get_contents($path);

            if (strpos($contents, 'This file has been generated automatically by Composer.') !== false) {
                unlink($path);
            }
        }
    }
protected function _removeAutoloader ( PackageInterface $ package ) { $ path = $ this -> _getAutoloaderPath ( $ package ) ; if ( file_exists ( $ path ) ) { $ contents = file_get_contents ( $ path ) ; if ( strpos ( $ contents , 'This file has been generated automatically by Composer.' ) !== false ) { unlink ( $ path ) ; } } }
Removes the autoloader for the given package if it was generated automatically.

@param PackageInterface $package
Removes the autoloader for the given package if it was generated automatically .