serviceRegistry = new ServiceRegistry( paths: [ __DIR__."/../registry", dirname(realpath($GLOBALS['argv'][0]))."/registry", "/usr/share/serverctl/registry", getenv("HOME")."/.share/serverctl/registry" ] ); $this->containerManager = new ContainerManager( dataPath: null ); $this->add(new Commands\StartCommand()); $this->add(new Commands\StopCommand()); $this->add(new Commands\ExecCommand()); $this->add(new Commands\FindCommand()); $this->add(new Commands\StatusCommand()); } public function getServiceRegistry(): ServiceRegistry { return $this->serviceRegistry; } public function getContainerManager(): ContainerManager { return $this->containerManager; } }