Skip to content

Instantly share code, notes, and snippets.

@ayalon
ayalon / gist:7690324
Last active December 29, 2015 15:19
Example Progress Command
<?php
namespace Ayalon\ProductBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class ProgressCommand extends Command
@ayalon
ayalon / gist:7690311
Last active December 29, 2015 15:19
Streamed Output of Console Command Line per Line
<?php
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Command\Command;
class ExportController extends Controller
{
public function streamingAction(){