mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
3ccbf37161
commit
440a3f5fdd
@ -65,6 +65,9 @@ class CommandTransport implements CommandTransportInterface
|
||||
case RemoteCommandFile::TRANSPORT:
|
||||
$transport = new RemoteCommandFile();
|
||||
break;
|
||||
case ApiCommandTransport::TRANSPORT:
|
||||
$transport = new ApiCommandTransport();
|
||||
break;
|
||||
case LocalCommandFile::TRANSPORT:
|
||||
case '': // Casting null to string is the empty string
|
||||
$transport = new LocalCommandFile();
|
||||
@ -74,12 +77,13 @@ class CommandTransport implements CommandTransportInterface
|
||||
mt(
|
||||
'monitoring',
|
||||
'Cannot create command transport "%s". Invalid transport'
|
||||
. ' defined in "%s". Use one of "%s" or "%s".'
|
||||
. ' defined in "%s". Use one of "%s", "%s" or "%s".'
|
||||
),
|
||||
$config->transport,
|
||||
static::getConfig()->getConfigFile(),
|
||||
LocalCommandFile::TRANSPORT,
|
||||
RemoteCommandFile::TRANSPORT
|
||||
RemoteCommandFile::TRANSPORT,
|
||||
ApiCommandTransport::TRANSPORT
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user