![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/redchamps/module-core/Cron/ |
<?php namespace RedChamps\Core\Cron; use Magento\Framework\Module\ModuleListInterface; use RedChamps\Core\Model\FeedFactory; use RedChamps\Core\Model\Processor; class GetUpdates { protected $moduleList; protected $processor; public function __construct( ModuleListInterface $moduleList, Processor $processor ) { $this->moduleList = $moduleList; $this->processor = $processor; } public function execute($force = false) { if ($force || $this->processor->canRun()) { $extensionNames = $this->moduleList->getNames(); $ourExtensions = $this->processor->filterExtensions($extensionNames); $this->processor->prepareExtensionVersions($ourExtensions); } } }