Print used config.

@param OutputInterface $output
@param mixed           $config
481063
protected function printUsableConfig(
        OutputInterface $output,
        $config
    ) {
        foreach ($config['group'] as $group) {
            $output->writeln('#   --group="' . $group . '"');
        }
        $output->writeln('#   --group-type="' . $config['group-type'] . '"');
        $output->writeln('#   --group-skip-empty="' . ($config['group-skip-empty'] ? 'true' : 'false') . '"');
        $output->writeln('#   --sort-type="' . $config['sort-type'] . '"');
        $output->writeln('#   --sort-direction="' . $config['sort-direction'] . '"');
    }
239355
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->requireConfig();

        $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;
    }
355294
public function sendOutput(String $output, String $colour='white', String $backgroundColor='black')
	{
		fwrite(STDOUT, $this->getText($output, $colour, $backgroundColor));
	}
1239096
public function setOutput(\Parable\Http\Output\OutputInterface $output)
    {
        $this->output = $output;
        $this->output->init($this);
        return $this;
    }
689071
private function renderServiceInformation(OutputInterface $output)
    {
        $table = new Table($output);
        $table->setHeaders(array('Service ID', 'Class'));

        $serviceIds = $this->container->getServiceIds();
        sort($serviceIds);

        foreach ($serviceIds as $id) {
            $service = $this->container->get($id);
            $table->addRow(array($id, get_class($service)));
        }
        $table->render();
    }
204206
public function process(InputInterface $input, OutputInterface $output, Config $config = null)
    {
        if (null === $config) {
            $config = new Config();
        }

        $this->load($config);

        return $this->processLoaded($input, $output, $config);
    }
1149909
protected function printApplicationTitle(OutputInterface $output): void
    {
        $output->writeln('');
        $output->writeln('DocBlock Checker');
        $output->writeln('');
    }
702215
private function connectOutputToEvents(OutputInterface $output)
    {
        $this->getHelper('phpdocumentor_logger')->connectOutputToLogging($output, $this);

        Dispatcher::getInstance()->addListener(
            Transformer::EVENT_PRE_TRANSFORM,
            function (PreTransformEvent $event) use ($output) {
                $transformations = $event->getSubject()->getTemplates()->getTransformations();
                $output->writeln(sprintf("\nApplying %d transformations", count($transformations)));
            }
        );
        Dispatcher::getInstance()->addListener(
            Transformer::EVENT_PRE_INITIALIZATION,
            function (WriterInitializationEvent $event) use ($output) {
                $output->writeln('  Initialize writer "' . get_class($event->getWriter()) . '"');
            }
        );
        Dispatcher::getInstance()->addListener(
            Transformer::EVENT_PRE_TRANSFORMATION,
            function (PreTransformationEvent $event) use ($output) {
                $output->writeln(
                    '  Execute transformation using writer "' . $event->getTransformation()->getWriter() . '"'
                );
            }
        );
    }
533921
protected function listKnownSheets(OutputInterface $output)
    {
        $output->writeln('Please enter one of the configured Sheet names');

        $table = new Table($output);
        $table->setHeaders(['Sheet Name', 'URL']);

        foreach ($this->googleApiService->getMapping() as $mappingName => $mappingProperties) {
            if (isset($mappingProperties['url'])) {
                $table->addRow([$mappingName, $mappingProperties['url']]);
            }
        }

        $table->render();
    }
607340
protected function _printLogo(&$output)
        {

            $output->writeLn('');
            $output->writeLn('');
            $output->writeLn('');
            $output->writeLn('<sw>          _           _                       _           </sw>');
            $output->writeLn('<sw>         | |         | |                     | |          </sw>');
            $output->writeLn('<sw>      ___| | __ _ ___| |____      _____  _ __| | _____    </sw>');
            $output->writeLn('<sw>     / __| |/ _` / __| \'_ \ \ /\ / / _ \| \'__| |/ / __|   </sw>');
            $output->writeLn('<sw>     \__ \ | (_| \__ \ | | \ V  V / (_) | |  |   <\__ \   </sw>');
            $output->writeLn('<sw>     |___/_|\__,_|___/_| |_|\_/\_/ \___/|_|  |_|\_\___/   </sw>');
            $output->writeLn('<fg=white>                                        web development   </fg=white>');
            $output->writeLn('');
            $output->writeLn('');
            $output->writeLn('                    [ <info>Cronjob Manager</info> ]');
            $output->writeLn('');
            $output->writeLn('');


        }
1140246
public static function _loadPrinterOutput( $outputType ) {
        $outputType = ucfirst(strtolower( $outputType ));
        $printerOutputName = $outputType."PrinterOutput";
                
        App::uses($printerOutputName, "Printers.PrinterOutput");
        self::$PrinterOutput = new $printerOutputName();
    }
324753
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->startCommand($output);
        $pluginHash = $input->getArgument('hash');
        $plugin = $this
            ->pluginRepository
            ->findOneBy([
                'hash' => $pluginHash,
            ]);

        if (!($plugin instanceof Plugin)) {
            $this->printMessageFail(
                $output,
                'Plugin',
                'Plugin with hash "' . $pluginHash . '" not found'
            );

            return null;
        }

        $plugin->disable();
        $this
            ->pluginObjectManager
            ->flush($plugin);

        $this->printMessage(
            $output,
            'Plugin',
            'Plugin with hash "' . $pluginHash . '" disabled'
        );

        $this->finishCommand($output);
    }
633583
public function delete(OutputInterface $output, array $response)
    {
        $this->printBoolean($output, 'OK', $response['success'], true === $response['success']);
    }
1277550
private void printConfig() {
        logger.debug("-----Configuration parameters:");
        for (String paramName : m_params.keySet()) {
            Object paramValue = m_params.get(paramName);
            printParam(paramName, paramValue, "");
        }
    }
317707
protected static function printInfoMessage(
        OutputInterface $output,
        $header,
        $body
    ) {
        self::printStructureMessage(
            $output,
            $header,
            $body,
            'info'
        );
    }
1023262
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if (null === $this->em) {
            $this->em = $this->getContainer()->get('doctrine.orm.entity_manager');
        }

        $configs = $this->getconfigs();

        if (count($configs)) {
            $result = "\t".'<fg=green>' . count($configs) . '</fg=green> configs found:';
            $output->writeln($result);
            foreach ($configs as $config) {
                $result = "\t".'(id: <fg=cyan>' .$config->getId() . '</fg=cyan>)';
                $result .= "\t" . $config->getName();

                $output->writeln($result);
            }
        } else {
            $output->writeln('No configs found');
        }
    }
966996
protected function execute(InputInterface $input, OutputInterface $output)
    {
        /** @var ConfigurationHelper $configurationHelper */
        $configurationHelper = $this->getHelper('phpdocumentor_configuration');

        $progress = $this->getProgressBar($input);
        if (! $progress) {
            $this->connectOutputToEvents($output);
        }

        // initialize transformer
        $transformer = $this->getTransformer();

        $target = (string) $configurationHelper->getOption($input, 'target', 'transformer/target');
        $fileSystem = new Filesystem();
        if (! $fileSystem->isAbsolutePath($target)) {
            $target = getcwd() . DIRECTORY_SEPARATOR . $target;
        }
        $transformer->setTarget($target);

        $source = realpath($configurationHelper->getOption($input, 'source', 'parser/target'));
        if (!file_exists($source) || !is_dir($source)) {
            throw new \Exception('Invalid source location provided, a path to an existing folder was expected');
        }

        $this->getCache()->getOptions()->setCacheDir($source);

        $projectDescriptor = $this->getBuilder()->getProjectDescriptor();
        $mapper = new ProjectDescriptorMapper($this->getCache());
        $output->writeTimedLog('Load cache', array($mapper, 'populate'), array($projectDescriptor));

        foreach ($this->getTemplates($input) as $template) {
            $output->writeTimedLog(
                'Preparing template "'. $template .'"',
                array($transformer->getTemplates(), 'load'),
                array($template, $transformer)
            );
        }
        $output->writeTimedLog(
            'Preparing ' . count($transformer->getTemplates()->getTransformations()) . ' transformations',
            array($this, 'loadTransformations'),
            array($transformer)
        );

        if ($progress) {
            $progress->start($output, count($transformer->getTemplates()->getTransformations()));
        }

        /** @var CompilerPassInterface $pass */
        foreach ($this->compiler as $pass) {
            $output->writeTimedLog($pass->getDescription(), array($pass, 'execute'), array($projectDescriptor));
        }

        if ($progress) {
            $progress->finish();
        }

        return 0;
    }