protected function updateComposer(string $currName, string $newName)
    {
        $rootPath = Config::get('paths', 'root');
        $currComposerContents = $this->fileSystem->read("$rootPath/composer.json");
        // Change the PSR-4 namespace
        $updatedComposerContents = str_replace(
            "$currName\\\\",
            "$newName\\\\",
            $currComposerContents
        );
        $this->fileSystem->write("$rootPath/composer.json", $updatedComposerContents);
    }
protected function updateComposer(string $currName, string $newName)
    {
        $rootPath = Config::get('paths', 'root');
        $currComposerContents = $this->fileSystem->read("$rootPath/composer.json");
        // Change the PSR-4 namespace
        $updatedComposerContents = str_replace(
            "$currName\\\\",
            "$newName\\\\",
            $currComposerContents
        );
        $this->fileSystem->write("$rootPath/composer.json", $updatedComposerContents);
    }
protected function updateComposer ( string $ currName , string $ newName ) { $ rootPath = Config :: get ( 'paths' , 'root' ) ; $ currComposerContents = $ this -> fileSystem -> read ( "$rootPath/composer.json" ) ; // Change the PSR-4 namespace $ updatedComposerContents = str_replace ( "$currName\\\\" , "$newName\\\\" , $ currComposerContents ) ; $ this -> fileSystem -> write ( "$rootPath/composer.json" , $ updatedComposerContents ) ; }
Updates the Composer config

@param string $currName The current application name
@param string $newName The new application name
Updates the Composer config