45 '<br/>Other checks will fail as a result (PHP version, PHP settings, and PHP extensions)';
69 return $this->checkJson(self::SETUP);
79 return $this->checkJson(self::UPDATER);
88 private function checkJson(
$type)
99 $jsonData = json_decode($read->readFile(self::UPDATER_CRON_JOB_STATS_FILE),
true);
102 return [
'success' =>
false,
'error' =>
'Internal Error'];
104 }
catch (\
Magento\Framework\Exception\FileSystemException $e) {
105 $error =
'Cron job has not been configured yet';
106 if (
$type == self::SETUP) {
119 return $this->checkCronTime($jsonData);
123 $error =
'Cron job has not been configured yet';
124 if (
$type == self::SETUP) {
139 private function checkCronTime(array $jsonData)
146 if ($timeDifference < 90) {
147 return [
'success' =>
true];
151 'notice' =>
'We recommend you schedule cron to run every 1 minute' 156 'notice' =>
'Unable to determine cron time interval. ' .
157 'We recommend you schedule cron to run every 1 minute' const SETUP_CRON_JOB_STATUS_FILE
const OTHER_CHECKS_WILL_FAIL_MSG
__construct(Filesystem $filesystem)
const KEY_CURRENT_TIMESTAMP
const UPDATER_CRON_JOB_STATS_FILE
const KEY_READINESS_CHECKS
const UPDATER_KEY_FILE_PERMISSIONS_VERIFIED
const KEY_DB_WRITE_PERMISSION_VERIFIED