public function processing($module = null)
    {

        // create dbdeploy folder if not existing
        $dbDeployPath = $_SERVER['DOCUMENT_ROOT'] . '/../dbdeploy';
        if (!file_exists($dbDeployPath)) {
            mkdir($dbDeployPath);
            if (!is_writable($dbDeployPath) || !is_readable($dbDeployPath)) {
                chmod($dbDeployPath, 0777);
            }
        } else {
            if (!is_writable($dbDeployPath) || !is_readable($dbDeployPath)) {
                @chmod($dbDeployPath, 0777);
            }
        }


        /** @var MelisDbDeployDeployService $deployService */
        $deployService = $this->getServiceLocator()->get('MelisDbDeployDeployService');

        if (false === $deployService->isInstalled()) {
            $deployService->install();
        }

        $this->copyDeltas($module);
        $deployService->applyDeltaPath(realpath('dbdeploy' . DIRECTORY_SEPARATOR . self::CACHE_DELTAS_PATH));
    }
public function processing($module = null)
    {

        // create dbdeploy folder if not existing
        $dbDeployPath = $_SERVER['DOCUMENT_ROOT'] . '/../dbdeploy';
        if (!file_exists($dbDeployPath)) {
            mkdir($dbDeployPath);
            if (!is_writable($dbDeployPath) || !is_readable($dbDeployPath)) {
                chmod($dbDeployPath, 0777);
            }
        } else {
            if (!is_writable($dbDeployPath) || !is_readable($dbDeployPath)) {
                @chmod($dbDeployPath, 0777);
            }
        }


        /** @var MelisDbDeployDeployService $deployService */
        $deployService = $this->getServiceLocator()->get('MelisDbDeployDeployService');

        if (false === $deployService->isInstalled()) {
            $deployService->install();
        }

        $this->copyDeltas($module);
        $deployService->applyDeltaPath(realpath('dbdeploy' . DIRECTORY_SEPARATOR . self::CACHE_DELTAS_PATH));
    }
public function processing ( $ module = null ) { // create dbdeploy folder if not existing $ dbDeployPath = $ _SERVER [ 'DOCUMENT_ROOT' ] . '/../dbdeploy' ; if ( ! file_exists ( $ dbDeployPath ) ) { mkdir ( $ dbDeployPath ) ; if ( ! is_writable ( $ dbDeployPath ) || ! is_readable ( $ dbDeployPath ) ) { chmod ( $ dbDeployPath , 0777 ) ; } } else { if ( ! is_writable ( $ dbDeployPath ) || ! is_readable ( $ dbDeployPath ) ) { @ chmod ( $ dbDeployPath , 0777 ) ; } } /** @var MelisDbDeployDeployService $deployService */ $ deployService = $ this -> getServiceLocator ( ) -> get ( 'MelisDbDeployDeployService' ) ; if ( false === $ deployService -> isInstalled ( ) ) { $ deployService -> install ( ) ; } $ this -> copyDeltas ( $ module ) ; $ deployService -> applyDeltaPath ( realpath ( 'dbdeploy' . DIRECTORY_SEPARATOR . self :: CACHE_DELTAS_PATH ) ) ; }
Processing all Melis Platform Modules that need upgrade database

@param String $module
Processing all Melis Platform Modules that need upgrade database