src/Core/Migration/MigrationHandler.php
protected function _buildMigrationQueries()
    {
        if (!is_dir($this->_sMigrationQueriesDir)) {
            return false;
        }

        $oDirectory = new \RecursiveDirectoryIterator($this->_sMigrationQueriesDir);
        $oFlattened = new \RecursiveIteratorIterator($oDirectory);

        $aFiles = new \RegexIterator($oFlattened, AbstractQuery::REGEXP_FILE);
        foreach ($aFiles as $sFilePath) {
            include_once $sFilePath;

            $sClassName = $this->_getClassNameFromFilePath($sFilePath);

            /** @var AbstractQuery $oQuery */
            $oQuery = oxNew($sClassName);

            $this->addQuery($oQuery);
        }

        return true;
    }
protected function _buildMigrationQueries()
    {
        if (!is_dir($this->_sMigrationQueriesDir)) {
            return false;
        }

        $oDirectory = new \RecursiveDirectoryIterator($this->_sMigrationQueriesDir);
        $oFlattened = new \RecursiveIteratorIterator($oDirectory);

        $aFiles = new \RegexIterator($oFlattened, AbstractQuery::REGEXP_FILE);
        foreach ($aFiles as $sFilePath) {
            include_once $sFilePath;

            $sClassName = $this->_getClassNameFromFilePath($sFilePath);

            /** @var AbstractQuery $oQuery */
            $oQuery = oxNew($sClassName);

            $this->addQuery($oQuery);
        }

        return true;
    }
protected function _buildMigrationQueries ( ) { if ( ! is_dir ( $ this -> _sMigrationQueriesDir ) ) { return false ; } $ oDirectory = new \ RecursiveDirectoryIterator ( $ this -> _sMigrationQueriesDir ) ; $ oFlattened = new \ RecursiveIteratorIterator ( $ oDirectory ) ; $ aFiles = new \ RegexIterator ( $ oFlattened , AbstractQuery :: REGEXP_FILE ) ; foreach ( $ aFiles as $ sFilePath ) { include_once $ sFilePath ; $ sClassName = $ this -> _getClassNameFromFilePath ( $ sFilePath ) ; /** @var AbstractQuery $oQuery */ $ oQuery = oxNew ( $ sClassName ) ; $ this -> addQuery ( $ oQuery ) ; } return true ; }
Load and build migration files

@throws MigrationException

@return bool
Load and build migration files