Migrations\MigrationsDispatcher::__construct PHP Method

__construct() public method

Initialize the Phinx console application.
public __construct ( string $version )
$version string The Application Version
    public function __construct($version)
    {
        parent::__construct('Migrations plugin, based on Phinx by Rob Morgan.', $version);
        $this->add(new Command\Create());
        $this->add(new Command\Dump());
        $this->add(new Command\MarkMigrated());
        $this->add(new Command\Migrate());
        $this->add(new Command\Rollback());
        $this->add(new Command\Seed());
        $this->add(new Command\Status());
        $this->setCatchExceptions(false);
    }
MigrationsDispatcher