src/Migration/Migration.php
public function getData()
    {
        $data   = [];
        $path   = $this->getPath();
        $dir    = new Folder($path);
        $files  = (array) $dir->find('.*\.php');

        if (count($files) > 0) {
            foreach ($files as $file) {
                $name     = FS::filename($file);
                $segments = explode('_', $name);
                $version  = array_shift($segments);
                $class    = Inflector::camelize(implode('_', $segments));

                $data[$version] = [
                    'class' => $class,
                    'path'  => $path . DS . $file
                ];
            }
        }

        return $data;
    }
public function getData()
    {
        $data   = [];
        $path   = $this->getPath();
        $dir    = new Folder($path);
        $files  = (array) $dir->find('.*\.php');

        if (count($files) > 0) {
            foreach ($files as $file) {
                $name     = FS::filename($file);
                $segments = explode('_', $name);
                $version  = array_shift($segments);
                $class    = Inflector::camelize(implode('_', $segments));

                $data[$version] = [
                    'class' => $class,
                    'path'  => $path . DS . $file
                ];
            }
        }

        return $data;
    }
public function getData ( ) { $ data = [ ] ; $ path = $ this -> getPath ( ) ; $ dir = new Folder ( $ path ) ; $ files = ( array ) $ dir -> find ( '.*\.php' ) ; if ( count ( $ files ) > 0 ) { foreach ( $ files as $ file ) { $ name = FS :: filename ( $ file ) ; $ segments = explode ( '_' , $ name ) ; $ version = array_shift ( $ segments ) ; $ class = Inflector :: camelize ( implode ( '_' , $ segments ) ) ; $ data [ $ version ] = [ 'class' => $ class , 'path' => $ path . DS . $ file ] ; } } return $ data ; }
Get data for migration.

@return  array

@throws  \Cake\Core\Exception\MissingPluginException
Get data for migration .