move
This commit is contained in:
@@ -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
|
||||
|
||||
+7
-3
@@ -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,
|
||||
Reference in New Issue
Block a user