protected function writeComposerFile($composer) { file_put_contents($this->command->path . '/composer.json', json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); }