-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(command): installation structure directory #94
Conversation
PR Summary
In summary, these changes contribute to improving the code consistency, enhancing flexibility, and ensuring accurate data handling across our system. |
src/Commands/InstallCommand.php
Outdated
protected $signature = 'diamond:install {--skip-refactor}'; | ||
use HasArguments; | ||
|
||
protected $signature = 'domain:install {domain} {--skip-refactor}'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove --skip-refactor since we disabled it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, I forgot this
// protected function resolveRefactor(): void | ||
// { | ||
// if (! $this->option('skip-refactor')) { | ||
// $filesystem = new Filesystem; | ||
// $filesystem->ensureDirectoryExists($this->resolveInfrastructurePath()); | ||
// $filesystem->moveDirectory(from: app_path(path: 'Providers'), to: $this->resolveInfrastructurePath()); | ||
// $configPath = base_path(path: '/config/app.php'); | ||
// /** @var string $contents */ | ||
// $contents = Str::replace( | ||
// search: 'App\\Providers', | ||
// replace: $this->resolveNamespace(), | ||
// subject: $filesystem->get($configPath) | ||
// ); | ||
// | ||
// $filesystem->put(path: $configPath, contents: $contents); | ||
// | ||
// foreach ($filesystem->files($this->resolveInfrastructurePath()) as $file) { | ||
// /** @var string $contents */ | ||
// $contents = Str::replace( | ||
// search: 'App\\Providers', | ||
// replace: $this->resolveNamespace(), | ||
// subject: $filesystem->get($file) | ||
// ); | ||
// | ||
// $filesystem->put(path: $file, contents: $contents); | ||
// } | ||
// } | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put an commen why we commented it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
No description provided.