diff --git a/Model/AdapterEngine/AdminPush.php b/Model/AdapterEngine/AdminPush.php index f5e3520..728124a 100755 --- a/Model/AdapterEngine/AdminPush.php +++ b/Model/AdapterEngine/AdminPush.php @@ -57,12 +57,12 @@ public function __construct( /** * Execute engine and return true on success. Throw exception on failure. - * @param string $emailMessage + * @param string $message * @param array $params * @return bool * @throws \InvalidArgumentException */ - public function execute(string $emailMessage, array $params = []): bool + public function execute(string $message, array $params = []): bool { if (!isset($params[self::PARAM_USERS])) { throw new \InvalidArgumentException('' . __('Missing users parameters')); @@ -74,7 +74,7 @@ public function execute(string $emailMessage, array $params = []): bool /** @var AdminPushInterface $adminPush */ $adminPush = $this->adminPushInterfaceFactory->create(); - $adminPush->setMessage($emailMessage); + $adminPush->setMessage($message); $adminPush->setCreatedAt(date('Y-m-d H:i:s')); $adminPush->setUserName($user); $adminPush->setParamsJson($this->serializer->serialize($params)); diff --git a/etc/module.xml b/etc/module.xml index 1249a98..b4bdc56 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -7,7 +7,7 @@ --> - +