diff --git a/src/Commands/HydePublishConfigsCommand.php b/src/Commands/HydePublishConfigsCommand.php
index f4d9764d..2a9bf3d2 100644
--- a/src/Commands/HydePublishConfigsCommand.php
+++ b/src/Commands/HydePublishConfigsCommand.php
@@ -2,82 +2,26 @@
namespace Hyde\Framework\Commands;
-use Illuminate\Filesystem\Filesystem;
-use Illuminate\Support\ServiceProvider;
+use Hyde\Framework\Hyde;
+use Illuminate\Support\Facades\File;
+use LaravelZero\Framework\Commands\Command;
/**
* Publish the Hyde Config Files.
*
* @uses HydeBasePublishingCommand
*/
-class HydePublishConfigsCommand extends HydeBasePublishingCommand
+class HydePublishConfigsCommand extends Command
{
- protected $signature = 'publish:configs {--force : Overwrite any existing files}';
+ protected $signature = 'update:configs';
+ protected $description = 'Publish the default configuration files';
- protected $description = 'Publish the Hyde configuration files';
-
- /**
- * Create a new command instance.
- *
- * @param \Illuminate\Filesystem\Filesystem $files
- * @return void
- */
- public function __construct(Filesystem $files)
- {
- parent::__construct();
-
- $this->files = $files;
- }
-
- /**
- * Execute the console command.
- *
- * @return int
- *
- * @throws \League\Flysystem\FilesystemException
- */
public function handle(): int
{
- $this->tags = array_flip(array_filter(
- array_flip(ServiceProvider::publishableGroups()),
- fn ($key) => str_starts_with($key, 'configs'),
- ARRAY_FILTER_USE_KEY
- ));
-
- foreach ($this->tags ?: [null] as $tag) {
- $this->publishTag($tag);
- }
+ File::copyDirectory(Hyde::vendorPath('config'), Hyde::path('config'));
- $this->info('Publishing complete.');
+ $this->line('Published config files to '.Hyde::path('config').'');
return 0;
}
-
- /**
- * Determine the provider or tag(s) to publish.
- *
- * @return void
- */
- protected function determineWhatShouldBePublished()
- {
- }
-
- /**
- * Prompt for which tag to publish.
- *
- * @return void
- */
- protected function promptForProviderOrTag()
- {
- }
-
- /**
- * The choices available via the prompt.
- *
- * @return array
- */
- protected function publishableChoices(): array
- {
- return [];
- }
}