11 use Zend\Mvc\Controller\AbstractActionController;
73 $view = new \Zend\View\Model\JsonModel([]);
74 $view->setTemplate(
'/error/404.phtml');
75 $this->getResponse()->setStatusCode(\
Zend\Http\Response::STATUS_CODE_404);
86 $type = $this->getRequest()->getQuery(
'type');
90 $data = $this->phpReadinessCheck->checkPhpVersion();
94 return new \Zend\View\Model\JsonModel(
$data);
104 $type = $this->getRequest()->getQuery(
'type');
108 $data = $this->phpReadinessCheck->checkPhpSettings();
112 return new \Zend\View\Model\JsonModel(
$data);
122 $type = $this->getRequest()->getQuery(
'type');
126 $data = $this->phpReadinessCheck->checkPhpExtensions();
130 return new \Zend\View\Model\JsonModel(
$data);
139 private function getPhpChecksInfo(
$type)
150 }
catch (\Exception $e) {
163 $missingWritePermissionPaths = $this->permissions->getMissingWritablePathsForInstallation(
true);
167 if ($missingWritePermissionPaths) {
168 foreach ($missingWritePermissionPaths as $key =>
$value) {
170 $requiredPaths[] = [
'path' => $key,
'missing' =>
$value];
173 $requiredPaths[] = [
'path' => $key];
174 $currentPaths[] = $key;
179 'responseType' => $responseType,
181 'required' => $requiredPaths,
182 'current' => $currentPaths,
186 return new \Zend\View\Model\JsonModel(
$data);
198 if (!$this->filesystem->getDirectoryRead(
DirectoryList::ROOT)->isExist(self::UPDATER_DIR)) {
202 'responseType' => $responseType
204 return new \Zend\View\Model\JsonModel(
$data);
216 $setupCheck = $this->cronScriptReadinessCheck->checkSetup();
217 $updaterCheck = $this->cronScriptReadinessCheck->checkUpdater();
219 if (!$setupCheck[
'success']) {
221 $data[
'setupErrorMessage'] =
'Error from Setup Application Cron Script:<br/>' . $setupCheck[
'error'];
223 if (!$updaterCheck[
'success']) {
225 $data[
'updaterErrorMessage'] =
'Error from Updater Application Cron Script:<br/>' . $updaterCheck[
'error'];
227 if (isset($setupCheck[
'notice'])) {
228 $data[
'setupNoticeMessage'] =
'Notice from Setup Application Cron Script:<br/>' . $setupCheck[
'notice'];
230 if (isset($updaterCheck[
'notice'])) {
231 $data[
'updaterNoticeMessage'] =
'Notice from Updater Application Cron Script:<br/>' .
232 $updaterCheck[
'notice'];
234 $data[
'responseType'] = $responseType;
235 return new \Zend\View\Model\JsonModel(
$data);
const SETUP_CRON_JOB_STATUS_FILE
elseif(isset( $params[ 'redirect_parent']))
const RESPONSE_TYPE_SUCCESS
updaterApplicationAction()
const KEY_PHP_EXTENSIONS_VERIFIED
const KEY_PHP_VERSION_VERIFIED
$cronScriptReadinessCheck
const RESPONSE_TYPE_ERROR
const KEY_PHP_SETTINGS_VERIFIED
__construct(\Magento\Framework\Setup\FilePermissions $permissions, \Magento\Framework\Filesystem $filesystem, \Magento\Setup\Model\CronScriptReadinessCheck $cronScriptReadinessCheck, \Magento\Setup\Model\PhpReadinessCheck $phpReadinessCheck)