for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the dotfiles project.
*
* (c) Anthonius Munthi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Dotfiles\Core\Command;
use Dotfiles\Core\Config\Config;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ConfigCommand extends Command
{
/**
* @var Config
private $config;
public function __construct(?string $name = null, Config $config)
parent::__construct($name);
$this->config = $config;
}
protected function configure(): void
$this
->setName('config')
;
protected function execute(InputInterface $input, OutputInterface $output): void
$config = $this->config;
$params = $config->getAll(true);
foreach ($params as $name => $value) {
$output->writeln(sprintf(
'<info>%s</info>=<comment>%s</comment>',
$name,
$value
));