Sha256: ffba20c0583d9dbde4b991dbb59d6f5b7d489cae994d431e0d3f350dbf7f9777

Contents?: true

Size: 768 Bytes

Versions: 24

Compression:

Stored size: 768 Bytes

Contents

<?php

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class FooCommand extends Command
{
    public $input;
    public $output;

    protected function configure()
    {
        $this
            ->setName('foo:bar')
            ->setDescription('The foo:bar command')
            ->setAliases(array('afoobar'))
        ;
    }

    protected function interact(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('interact called');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->input = $input;
        $this->output = $output;

        $output->writeln('called');
    }
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
dependabot-composer-0.106.12 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.106.11 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.106.5 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.100.2 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.36 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.19 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.13 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.11 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.10 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.7 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.6 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.98.1 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.70 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.63 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.60 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.52 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.50 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.47 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.42 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php
dependabot-composer-0.95.40 helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php