src/Console/Controllers/MigrateController.php
protected function createMigration($class)
    {
        $this->includeMigrationFile($class);

        $migration = \Reaction::create([
            'class' => $class,
            'db' => $this->db,
            'compact' => $this->compact,
        ]);

        if ($migration instanceof ComponentInitBlockingInterface) {
            return $migration->initComponent()
                ->then(function() use ($migration) {
                    return $migration;
                });
        }

        return resolve($migration);
    }
protected function createMigration($class)
    {
        $this->includeMigrationFile($class);

        $migration = \Reaction::create([
            'class' => $class,
            'db' => $this->db,
            'compact' => $this->compact,
        ]);

        if ($migration instanceof ComponentInitBlockingInterface) {
            return $migration->initComponent()
                ->then(function() use ($migration) {
                    return $migration;
                });
        }

        return resolve($migration);
    }
Creates a new migration instance.
@param string $class the migration class name
@return ExtendedPromiseInterface with \Reaction\Db\Migration the migration instance