Sha256: 604cdf4d100a2526b7f1fe69bcb5e9cc6a365694ed834d2264000da4598c6b36

Contents?: true

Size: 1.06 KB

Versions: 18

Compression:

Stored size: 1.06 KB

Contents

<?php

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

//Ensure has proper line ending before outputting a text block like with SymfonyStyle::listing() or SymfonyStyle::text()
return function (InputInterface $input, OutputInterface $output) {
    $output = new SymfonyStyle($input, $output);

    $output->writeln('Lorem ipsum dolor sit amet');
    $output->listing([
        'Lorem ipsum dolor sit amet',
        'consectetur adipiscing elit',
    ]);

    //Even using write:
    $output->write('Lorem ipsum dolor sit amet');
    $output->listing([
        'Lorem ipsum dolor sit amet',
        'consectetur adipiscing elit',
    ]);

    $output->write('Lorem ipsum dolor sit amet');
    $output->text([
        'Lorem ipsum dolor sit amet',
        'consectetur adipiscing elit',
    ]);

    $output->newLine();

    $output->write('Lorem ipsum dolor sit amet');
    $output->comment([
        'Lorem ipsum dolor sit amet',
        'consectetur adipiscing elit',
    ]);
};

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dependabot-composer-0.119.0.beta1 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.113.19 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.112.1 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.111.57 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.111.56 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.111.52 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.111.50 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.111.25 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.111.17 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.111.15 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.110.13 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.108.11 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.108.8 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.107.47 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.107.39 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.107.36 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.107.28 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
dependabot-composer-0.107.14 helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php