getMigrationName example

$filename = basename($path, '.php');

        if (preg_match($this->regex, $filename)) {
            return false;
        }

        $locator = Services::locator(true);

        $migration = new stdClass();

        $migration->version   = $this->getMigrationNumber($filename);
        $migration->name      = $this->getMigrationName($filename);
        $migration->path      = $path;
        $migration->class     = $locator->getClassname($path);
        $migration->namespace = $namespace;
        $migration->uid       = $this->getObjectUid($migration);

        return $migration;
    }

    /** * Allows other scripts to modify on the fly as needed. * * @return MigrationRunner */
Home | Imprint | This part of the site doesn't use cookies.