mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
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);
|
$this->fail($this->translate('Unknown type') . ': ' . $type);
|
||||||
}
|
}
|
||||||
$webserver->setApp($this->app);
|
$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) {
|
if (($path = $this->params->get('path', '/icingaweb')) === null) {
|
||||||
$this->fail($this->translate('argument --path is mandatory.'));
|
$this->fail($this->translate('argument --path is mandatory.'));
|
||||||
}
|
}
|
||||||
@ -112,7 +109,6 @@ class ConfigCommand extends Command
|
|||||||
}
|
}
|
||||||
$webserver->setWebPath($path);
|
$webserver->setWebPath($path);
|
||||||
$webserver->setPublicPath($publicPath);
|
$webserver->setPublicPath($publicPath);
|
||||||
$webserver->setSapi($sapi);
|
|
||||||
$config = $webserver->generate() . "\n";
|
$config = $webserver->generate() . "\n";
|
||||||
if (($file = $this->params->get('file')) !== null) {
|
if (($file = $this->params->get('file')) !== null) {
|
||||||
if (file_exists($file) === true) {
|
if (file_exists($file) === true) {
|
||||||
|
@ -19,13 +19,6 @@ abstract class Webserver
|
|||||||
*/
|
*/
|
||||||
protected $webPath;
|
protected $webPath;
|
||||||
|
|
||||||
/**
|
|
||||||
* SAPI name (e.g for cgi config generation)
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $sapi;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* System path to public documents
|
* System path to public documents
|
||||||
*
|
*
|
||||||
@ -88,26 +81,6 @@ abstract class Webserver
|
|||||||
*/
|
*/
|
||||||
abstract protected function getTemplate();
|
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
|
* Setter for web path
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user