CLI/Webserver Setup: Remove sapi stuff becuase it's nowhere used
refs #6120
This commit is contained in:
parent
2ad2127ae3
commit
0d4ed40cb2
|
@ -101,9 +101,6 @@ class ConfigCommand extends Command
|
|||
$this->fail($this->translate('Unknown type') . ': ' . $type);
|
||||
}
|
||||
$webserver->setApp($this->app);
|
||||
if (($sapi = $this->params->get('sapi', 'server')) === null) {
|
||||
$this->fail($this->translate('argument --sapi is mandatory.'));
|
||||
}
|
||||
if (($path = $this->params->get('path', '/icingaweb')) === null) {
|
||||
$this->fail($this->translate('argument --path is mandatory.'));
|
||||
}
|
||||
|
@ -112,7 +109,6 @@ class ConfigCommand extends Command
|
|||
}
|
||||
$webserver->setWebPath($path);
|
||||
$webserver->setPublicPath($publicPath);
|
||||
$webserver->setSapi($sapi);
|
||||
$config = $webserver->generate() . "\n";
|
||||
if (($file = $this->params->get('file')) !== null) {
|
||||
if (file_exists($file) === true) {
|
||||
|
|
|
@ -19,13 +19,6 @@ abstract class Webserver
|
|||
*/
|
||||
protected $webPath;
|
||||
|
||||
/**
|
||||
* SAPI name (e.g for cgi config generation)
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $sapi;
|
||||
|
||||
/**
|
||||
* System path to public documents
|
||||
*
|
||||
|
@ -88,26 +81,6 @@ abstract class Webserver
|
|||
*/
|
||||
abstract protected function getTemplate();
|
||||
|
||||
/**
|
||||
* Setter for SAPI name
|
||||
*
|
||||
* @param string $sapi
|
||||
*/
|
||||
public function setSapi($sapi)
|
||||
{
|
||||
$this->sapi = $sapi;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for SAPI name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSapi()
|
||||
{
|
||||
return $this->sapi;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for web path
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue