Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (46 sloc) 1.08 KB
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Event;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Allows to inspect input and output of a command.
*
* @author Francesco Levorato <git@flevour.net>
*/
class ConsoleEvent extends Event
{
private $input;
private $output;
public function __construct(InputInterface $input, OutputInterface $output)
{
$this->input = $input;
$this->output = $output;
}
/**
* Returns the input object
*
* @return InputInterface
*/
public function getInput()
{
return $this->input;
}
/**
* Returns the output object
*
* @return OutputInterface
*/
public function getOutput()
{
return $this->output;
}
}
Something went wrong with that request. Please try again.