This commit is contained in:
Yuri Kuznetsov
2024-04-20 15:20:18 +03:00
parent 7d6b1d7bcf
commit a575a69704
2 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ use Espo\Core\Container;
use Espo\Core\DataManager;
use Espo\Core\Api\Request;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\AdminNotificationManager;
use Espo\Tools\AdminNotifications\Manager;
use Espo\Core\Utils\SystemRequirements;
use Espo\Core\Utils\ScheduledJob;
use Espo\Core\Upgrades\UpgradeManager;
@@ -51,7 +51,7 @@ class Admin
private Container $container,
private Config $config,
private User $user,
private AdminNotificationManager $adminNotificationManager,
private Manager $adminNotificationManager,
private SystemRequirements $systemRequirements,
private ScheduledJob $scheduledJob,
private DataManager $dataManager
@@ -27,15 +27,19 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\Utils;
namespace Espo\Tools\AdminNotifications;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Language;
use Espo\Core\Utils\ScheduledJob;
use Espo\Core\Utils\Util;
use Espo\Entities\Extension;
use Espo\ORM\EntityManager;
/**
* Notifications on the admin panel.
*/
class AdminNotificationManager
class Manager
{
public function __construct(
private EntityManager $entityManager,
@@ -174,7 +178,7 @@ class AdminNotificationManager
private function getExtensionLatestInstalledVersion(string $extensionName): ?string
{
$extension = $this->entityManager
->getRDBRepository('Extension')
->getRDBRepository(Extension::ENTITY_TYPE)
->select(['version'])
->where([
'name' => $extensionName,