src/Autocreate/Manager.php
public static function init($dir, $table = null)
    {
        $templates = new TemplatesCollection();
        $templates->registerAutoTemplates();

        $config = [
            'dir'   => $dir,
            'table' => is_null($table) ? 'migrations' : $table,
        ];

        static::$migrator = new Migrator($config, $templates);

        static::addEventHandlers();

        static::turnOn();
    }
public static function init($dir, $table = null)
    {
        $templates = new TemplatesCollection();
        $templates->registerAutoTemplates();

        $config = [
            'dir'   => $dir,
            'table' => is_null($table) ? 'migrations' : $table,
        ];

        static::$migrator = new Migrator($config, $templates);

        static::addEventHandlers();

        static::turnOn();
    }
public static function init ( $ dir , $ table = null ) { $ templates = new TemplatesCollection ( ) ; $ templates -> registerAutoTemplates ( ) ; $ config = [ 'dir' => $ dir , 'table' => is_null ( $ table ) ? 'migrations' : $ table , ] ; static :: $ migrator = new Migrator ( $ config , $ templates ) ; static :: addEventHandlers ( ) ; static :: turnOn ( ) ; }
Initialize autocreation.

@param string      $dir
@param string|null $table
Initialize autocreation .