src/Command/ManagerInfoCommand.php
<?php
/**
* @copyright (c) Copyright by authors of the Tiki Manager Project. All Rights Reserved.
* See copyright.txt for details and a complete list of authors.
* @licence Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See LICENSE for details.
*/
namespace TikiManager\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use TikiManager\Application\Instance;
use TikiManager\Command\Helper\CommandHelper;
class ManagerInfoCommand extends TikiManagerCommand
{
protected function configure()
{
parent::configure();
$this
->setName('manager:info')
->setDescription('Show Tiki Manager Info')
->setHelp('This command allows you to show Tiki Manager information');
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$instance = new Instance();
$instance->type = 'local';
$discovery = $instance->getDiscovery();
$this->io->title('Tiki Manager Info');
CommandHelper::displayInfo($discovery);
return 0;
}
}