mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
parent
bb7f465c0e
commit
8e28fff524
@ -6,7 +6,7 @@ namespace Icinga\Clicommands;
|
|||||||
|
|
||||||
use Icinga\Application\Logger;
|
use Icinga\Application\Logger;
|
||||||
use Icinga\Cli\Command;
|
use Icinga\Cli\Command;
|
||||||
use Icinga\Config\Webserver\WebServer;
|
use Icinga\Config\Webserver\Webserver;
|
||||||
use Icinga\Exception\ProgrammingError;
|
use Icinga\Exception\ProgrammingError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -153,7 +153,7 @@ class SetupCommand extends Command
|
|||||||
$this->fail($this->translate('Argument type is mandatory.'));
|
$this->fail($this->translate('Argument type is mandatory.'));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$webserver = WebServer::createInstance($type);
|
$webserver = Webserver::createInstance($type);
|
||||||
} catch (ProgrammingError $e) {
|
} catch (ProgrammingError $e) {
|
||||||
$this->fail($this->translate('Unknown type') . ': ' . $type);
|
$this->fail($this->translate('Unknown type') . ': ' . $type);
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ namespace Icinga\Config\Webserver;
|
|||||||
/**
|
/**
|
||||||
* Generate apache 2.x (< 2.4) configuration
|
* Generate apache 2.x (< 2.4) configuration
|
||||||
*/
|
*/
|
||||||
class Apache2 extends WebServer
|
class Apache2 extends Webserver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -10,7 +10,7 @@ use Icinga\Exception\ProgrammingError;
|
|||||||
/**
|
/**
|
||||||
* Generate webserver configuration
|
* Generate webserver configuration
|
||||||
*/
|
*/
|
||||||
abstract class WebServer
|
abstract class Webserver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Web path
|
* Web path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user