Ejemplo n.º 1
0
 protected function getApiInstance($params = [])
 {
     $config = new RestartServerConfig();
     $config->loggable = $this->loggable;
     $config->repository = $this->jobRepository;
     $this->request = SampleRequest::factoryForGetParams($params);
     $api = new RestartServer($this->request, $this->configurationRepository, $config);
     return $api;
 }
Ejemplo n.º 2
0
 protected function getApiInstance($params = [])
 {
     $this->request = SampleRequest::factoryForGetParams($params);
     $api = new Cancel($this->request, $this->configurationRepository, $this->jobRepository);
     return $api;
 }
Ejemplo n.º 3
0
 protected function getApiInstance($params)
 {
     $this->request = SampleRequest::factoryForGetParams($params);
     $api = new ServerStatus($this->request, $this->configurationRepository);
     return $api;
 }