src/Migration/Creator.php
public static function new(
        string $type = 'default',
        string $path = Migrate::DEFAULT_PATH,
        $notify = NotifyInterface::LOGGER
    ): Creator
    {
        $fs = new Filesystem(new Local($path));
        $note = NotifyFactory::create($notify);

        return new static(CreatorFactory::create($type, $note), $fs, $note);
    }
public static function new(
        string $type = 'default',
        string $path = Migrate::DEFAULT_PATH,
        $notify = NotifyInterface::LOGGER
    ): Creator
    {
        $fs = new Filesystem(new Local($path));
        $note = NotifyFactory::create($notify);

        return new static(CreatorFactory::create($type, $note), $fs, $note);
    }
Create a Creator object with default values.

@param string $type
@param string $path
@param \Roquie\Database\Notify\NotifyInterface|string $notify
@return \Roquie\Database\Migration\Creator