From 7ee9f30df58692aca7892d1833e5ce7d75a40b48 Mon Sep 17 00:00:00 2001 From: Evgeni Obukhovsky Date: Sun, 7 May 2017 17:47:14 +0300 Subject: [PATCH] fix for "Class not found" exception --- app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php b/app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php index ac78c0162812e..1e494d59046ef 100644 --- a/app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php +++ b/app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php @@ -10,7 +10,7 @@ namespace Magento\Cron\Observer; use Magento\Framework\App\State; -use Magento\Framework\Console\CLI; +use Magento\Framework\Console\Cli; use Magento\Framework\Event\ObserverInterface; use \Magento\Cron\Model\Schedule; @@ -188,7 +188,7 @@ public function execute(\Magento\Framework\Event\Observer $observer) ) == 1 )) { $this->_shell->execute( - $phpPath . ' %s cron:run --group=' . $groupId . ' --' . CLI::INPUT_KEY_BOOTSTRAP . '=' + $phpPath . ' %s cron:run --group=' . $groupId . ' --' . Cli::INPUT_KEY_BOOTSTRAP . '=' . self::STANDALONE_PROCESS_STARTED . '=1', [ BP . '/bin/magento'