CLI/Webserver Setup: Remove sapi stuff becuase it's nowhere used

refs #6120
This commit is contained in:
Eric Lippmann 2014-11-13 12:52:21 +01:00
parent 2ad2127ae3
commit 0d4ed40cb2
2 changed files with 0 additions and 31 deletions

View File

@ -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) {

View File

@ -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
*