mirror of
https://github.com/Icinga/docker-icingaweb2.git
synced 2025-10-24 05:21:00 +02:00
It knows best what they have to look like to be interpreted correctly. Especially the proper quoting of special characters is important.
17 lines
380 B
PHP
17 lines
380 B
PHP
<?php
|
|
// Icinga Web 2 Docker image | (c) 2024 Icinga GmbH | GPLv2+
|
|
|
|
namespace Icinga\Module\Dockerentrypoint\Clicommands;
|
|
|
|
use Icinga\Application\Config;
|
|
use Icinga\Cli\Command;
|
|
use Icinga\Util\Json;
|
|
|
|
class ConfigCommand extends Command
|
|
{
|
|
public function renderAction(): void
|
|
{
|
|
echo Config::fromArray(Json::decode(file_get_contents('php://stdin'), true));
|
|
}
|
|
}
|