File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace Jedymatt \LaravelSailEnv \Console ;
44
5- use Laravel \Sail \Console \InstallCommand ;
5+ use Illuminate \Console \Command ;
6+ use Laravel \Sail \Console \Concerns \InteractsWithDockerComposeServices ;
67
7- class SailEnvCommand extends InstallCommand
8+ class SailEnvCommand extends Command
89{
10+ use InteractsWithDockerComposeServices;
11+
912 /**
1013 * The name and signature of the console command.
1114 *
@@ -45,7 +48,7 @@ public function handle()
4548 return 1 ;
4649 }
4750
48- $ services = $ this ->getServicesFromDockerCompose ();
51+ $ services = $ this ->getServicesFromCompose ();
4952
5053 $ this ->comment ('Detected services from docker-compose.yml: [ ' .implode (', ' , $ services ).'] ' );
5154
@@ -54,7 +57,7 @@ public function handle()
5457 $ this ->info ('Successfully configured .env file. ' );
5558 }
5659
57- protected function getServicesFromDockerCompose (): array
60+ protected function getServicesFromCompose (): array
5861 {
5962 $ dockerComposeContent = file_get_contents ($ this ->laravel ->basePath ('docker-compose.yml ' ));
6063
You can’t perform that action at this time.
0 commit comments