mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 10:34:34 +00:00
28 lines
787 B
PHP
28 lines
787 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\WorkerManager\Command;
|
|
|
|
use Alchemy\Phrasea\Command\Command;
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
use Symfony\Component\Yaml\Yaml;
|
|
|
|
class WorkerShowConfigCommand extends Command
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('worker:show-configuration');
|
|
|
|
$this->setDescription('Show queues configuration');
|
|
}
|
|
|
|
public function doExecute(InputInterface $input, OutputInterface $output)
|
|
{
|
|
$serverConfiguration = $this->container['conf']->get(['workers', 'queue', 'worker-queue']);
|
|
|
|
$output->writeln(['', 'Configured server: ']);
|
|
|
|
$output->writeln(['Rabbit Server : ' . Yaml::dump($serverConfiguration, 0), '']);
|
|
}
|
|
}
|