Skip to content

Commit fa17ffe

Browse files
committed
Fix not resolving services when displaying list view
1 parent 69f0c79 commit fa17ffe

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

.idea/csv-plugin.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Commands/Services/ListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5555
->list()
5656
->sort(fn(Service $a, Service $b) => $a->name() <=> $b->name())
5757
->each(function (Service $service) use ($table) {
58-
$service->appContainer() ?? $this->docker->resolve($service);
58+
$this->docker->resolve($service);
5959

6060
$table->addRow([
6161
$service->name(),

src/Services/DockerManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ public function resolve(Service $service): void
8080
if (!$service->isInstalled()) {
8181
return;
8282
}
83+
if (!$service->appContainer()) {
84+
return;
85+
}
8386

8487
$sep = version_compare($this->version, '2.0.0', '>=') ? '-' : '_';
8588
$env = (new Dotenv())->parse(file_get_contents($service->envFile()));

0 commit comments

Comments
 (0)