mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-17 21:26:40 +02:00
55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
|
<?php
|
||
|
/*
|
||
|
* This file is part of the Magallanes package.
|
||
|
*
|
||
|
* (c) Andrés Montañez <andres@andresmontanez.com>
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace Mage\Command\BuiltIn\Config;
|
||
|
|
||
|
use Symfony\Component\Console\Input\InputInterface;
|
||
|
use Symfony\Component\Console\Output\OutputInterface;
|
||
|
use Mage\Command\AbstractCommand;
|
||
|
|
||
|
/**
|
||
|
* Command for Dumping the Configuration
|
||
|
*
|
||
|
* @author Andrés Montañez <andresmontanez@gmail.com>
|
||
|
*/
|
||
|
class DumpCommand extends AbstractCommand
|
||
|
{
|
||
|
/**
|
||
|
* Configure the Command
|
||
|
*/
|
||
|
protected function configure()
|
||
|
{
|
||
|
$this
|
||
|
->setName('config:dump')
|
||
|
->setDescription('Dumps the Magallanes configuration')
|
||
|
;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Execute the Command
|
||
|
*
|
||
|
* @param InputInterface $input
|
||
|
* @param OutputInterface $output
|
||
|
* @return int|mixed
|
||
|
*/
|
||
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||
|
{
|
||
|
$output->writeln('Starting <fg=blue>Magallanes</>');
|
||
|
$output->writeln('');
|
||
|
|
||
|
$output->writeln(sprintf('<comment>%s</comment>', var_export($this->runtime->getConfiguration(), true)));
|
||
|
|
||
|
$output->writeln('');
|
||
|
$output->writeln('Finished <fg=blue>Magallanes</>');
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
}
|