compose = $docker['compose']; } if ($hasCompose || $hasBuild) { register_command(new Commands\DockerUpCommand); register_command(new Commands\DockerDownCommand); register_command(new Commands\DockerStatusCommand); register_command(new Commands\DockerDbExportCommand); } if ($hasBuild) { register_command(new Commands\DockerBuildCommand); register_command(new Commands\DockerExecCommand); } register_command(new Commands\Stack\StatusCommand); register_command(new Commands\Stack\RegisterCommand); register_command(new Commands\Stack\UnregisterCommand); } public function getComposeStack(): ?Stack { $base = $this->getProjectDirectory(); if (empty($this->composeStack)) { $composeFile = $base . "/" . ($this->compose['file']??'docker-compose.yml'); $this->composeStack = new Stack($composeFile); } return $this->composeStack; } } //if (file_exists(get_environment()->getConfigDirectory()."/maker.json")) { register_plugin("com.noccy.docker", new DockerPlug()); //}