<?php

namespace Dami\Cli\Command;

use Symfony\Component\Console\Input\InputArgument,
    Symfony\Component\Console\Input\InputOption,
    Symfony\Component\Console,
    Symfony\Component\Console\Input\InputInterface,
    Symfony\Component\Console\Output\OutputInterface;

use Dami\Migration\MigrationFiles;

class StatusCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        parent::configure();
        $this
            ->setDescription('Migrations status.');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        parent::execute($input, $output);

        $migrationFiles = $this->getContainer()->get('dami.migration_files');
        $migrationFiles->statusIntention();
        $rows = array();
        foreach ($migrationFiles->get() as $migrationFile) {
            $status = $migrationFile->isMigrated() ? 'Migrated' : 'Not migrated';
            $rows[] = array($status, $migrationFile->getVersion(), $migrationFile->getName());
        }
        if (count($rows) > 0) {
            $table = $this->getHelperSet()->get('table');
            $table
                ->setHeaders(array('Status', 'Version', 'Name'))
                ->setRows($rows)
                ->render($output);
        } else {
            $output->writeln(sprintf('<comment>There are no migrations.</comment>'));
        }
    }
}

<?php

namespace Dami\Cli\Command;

use Symfony\Component\Console\Input\InputArgument,
    Symfony\Component\Console\Input\InputOption,
    Symfony\Component\Console,
    Symfony\Component\Console\Input\InputInterface,
    Symfony\Component\Console\Output\OutputInterface;

class StatusCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        parent::configure();
        $this
            ->setDescription('Migrations status.');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        parent::execute($input, $output);

        $migrationFiles = $this->getContainer()->get('dami.migration_files');
        $migrationFiles->statusIntention();
        $rows = array();
        foreach ($migrationFiles->get() as $migrationFile) {
            $status = $migrationFile->isMigrated() ? 'Migrated' : 'Not migrated';
            $rows[] = array($status, $migrationFile->getVersion(), $migrationFile->getName());
        }
        if (count($rows) > 0) {
            (new Console\Helper\Table($output))
                ->setHeaders(['Status', 'Version', 'Name'])
                ->setRows($rows)
                ->render($output);
        } else {
            $output->writeln(sprintf('<comment>There are no migrations.</comment>'));
        }
    }
}

Support for new sf api
Support for new sf api