protected function addAutoloader() {
        $autoloaderFile = VENDOR_PATH.'composer/autoload_psr4.php';
        $content = file_get_contents($autoloaderFile);
        
        $lineToAdd = PHP_EOL.'    \''.$this->authorNamespace.'\\\\'.$this->id.'\\\\\' => array($baseDir . \'/'.$this->id.'\'),';
        $content = str_replace('return array(', 'return array('.$lineToAdd, $content);
        
        $content = file_put_contents($autoloaderFile, $content);
    }
protected function addAutoloader() {
        $autoloaderFile = VENDOR_PATH.'composer/autoload_psr4.php';
        $content = file_get_contents($autoloaderFile);
        
        $lineToAdd = PHP_EOL.'    \''.$this->authorNamespace.'\\\\'.$this->id.'\\\\\' => array($baseDir . \'/'.$this->id.'\'),';
        $content = str_replace('return array(', 'return array('.$lineToAdd, $content);
        
        $content = file_put_contents($autoloaderFile, $content);
    }
protected function addAutoloader ( ) { $ autoloaderFile = VENDOR_PATH . 'composer/autoload_psr4.php' ; $ content = file_get_contents ( $ autoloaderFile ) ; $ lineToAdd = PHP_EOL . '    \'' . $ this -> authorNamespace . '\\\\' . $ this -> id . '\\\\\' => array($baseDir . \'/' . $ this -> id . '\'),' ; $ content = str_replace ( 'return array(' , 'return array(' . $ lineToAdd , $ content ) ; $ content = file_put_contents ( $ autoloaderFile , $ content ) ; }
Add the autoloader manually to the composer,
will break on next update
Add the autoloader manually to the composer will break on next update