<?php

namespace Mongrate\MongrateBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\Console\Application;

class MongrateBundle extends Bundle
{
    public function registerCommands(Application $application)
    {
        $config = $application->getKernel()
            ->getContainer()
            ->getParameter('mongrate_bundle');

        $application->add(new \Mongrate\MongrateBundle\Command\ToggleMigrationCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\GenerateMigrationCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\UpCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\DownCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\ListCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\TestCommand($config));
    }
}

<?php

namespace Mongrate\MongrateBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\Console\Application;

class MongrateBundle extends Bundle
{
    public function registerCommands(Application $application)
    {
        $config = $application->getKernel()
            ->getContainer()
            ->getParameter('mongrate_bundle');

        $application->add(new \Mongrate\MongrateBundle\Command\ToggleMigrationCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\GenerateMigrationCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\UpCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\UpAllCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\DownCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\ListCommand($config));
        $application->add(new \Mongrate\MongrateBundle\Command\TestCommand($config));
    }
}

Add UpAllCommand to Mongrate application.
Add UpAllCommand to Mongrate application.
