protected function registerMigrationFiles($packagePath)
    {
        $packagePath = rtrim($packagePath, '/');
        $packageKey = substr($packagePath, strrpos($packagePath, '/') + 1);
        $migrationsDirectory = Files::concatenatePaths(array($packagePath, 'Migrations/Code'));
        if (!is_dir($migrationsDirectory)) {
            return;
        }

        foreach (Files::getRecursiveDirectoryGenerator($migrationsDirectory, '.php') as $filenameAndPath) {
            /** @noinspection PhpIncludeInspection */
            require_once($filenameAndPath);
            $baseFilename = basename($filenameAndPath, '.php');
            $className = '\\Neos\\Flow\\Core\\Migrations\\' . $baseFilename;
            /** @var AbstractMigration $migration */
            $migration = new $className($this, $packageKey);
            $this->migrations[$migration->getVersionNumber()] = $migration;
        }
    }
protected function registerMigrationFiles($packagePath)
    {
        $packagePath = rtrim($packagePath, '/');
        $packageKey = substr($packagePath, strrpos($packagePath, '/') + 1);
        $migrationsDirectory = Files::concatenatePaths(array($packagePath, 'Migrations/Code'));
        if (!is_dir($migrationsDirectory)) {
            return;
        }

        foreach (Files::getRecursiveDirectoryGenerator($migrationsDirectory, '.php') as $filenameAndPath) {
            /** @noinspection PhpIncludeInspection */
            require_once($filenameAndPath);
            $baseFilename = basename($filenameAndPath, '.php');
            $className = '\\Neos\\Flow\\Core\\Migrations\\' . $baseFilename;
            /** @var AbstractMigration $migration */
            $migration = new $className($this, $packageKey);
            $this->migrations[$migration->getVersionNumber()] = $migration;
        }
    }
protected function registerMigrationFiles ( $ packagePath ) { $ packagePath = rtrim ( $ packagePath , '/' ) ; $ packageKey = substr ( $ packagePath , strrpos ( $ packagePath , '/' ) + 1 ) ; $ migrationsDirectory = Files :: concatenatePaths ( array ( $ packagePath , 'Migrations/Code' ) ) ; if ( ! is_dir ( $ migrationsDirectory ) ) { return ; } foreach ( Files :: getRecursiveDirectoryGenerator ( $ migrationsDirectory , '.php' ) as $ filenameAndPath ) { /** @noinspection PhpIncludeInspection */ require_once ( $ filenameAndPath ) ; $ baseFilename = basename ( $ filenameAndPath , '.php' ) ; $ className = '\\Neos\\Flow\\Core\\Migrations\\' . $ baseFilename ; /** @var AbstractMigration $migration */ $ migration = new $ className ( $ this , $ packageKey ) ; $ this -> migrations [ $ migration -> getVersionNumber ( ) ] = $ migration ; } }
Look for code migration files in the given package path and register them
for further action.

@param string $packagePath
@return void
Look for code migration files in the given package path and register them for further action .