/** * Run an upgrade step * * @param string $method Upgrade cell method to call * @param array $params Call params OPTIONAL * * @return mixed */ protected function runStep($method, array $params = array()) { return \Includes\Utils\Operator::executeWithCustomMaxExecTime(\Includes\Utils\ConfigParser::getOptions(array('marketplace', 'upgrade_step_time_limit')), array(\XLite\Upgrade\Cell::getInstance(), $method), $params); }
/** * Run a step * * @param string $step Step name * * @return void */ protected static function runStep($step) { // Set internal flag if (!defined('XLITE_CACHE_BUILDING')) { define('XLITE_CACHE_BUILDING', true); } // To prevent multiple processes execution static::checkIfRebuildStarted(); // Write indicator files and show the message static::startStep($step); // Enable output (if needed) static::setFastCGITimeoutEcho(); // Perform step-specific actions \Includes\Utils\Operator::executeWithCustomMaxExecTime(\Includes\Utils\ConfigParser::getOptions(array('decorator', 'time_limit')), static::getStepCallback($step)); // (Un)Set indicator files and redirect static::completeStep($step); }