This commit is contained in:
Yuri Kuznetsov
2023-02-17 17:32:17 +02:00
parent 2615869691
commit 4c265dbae1
20 changed files with 99 additions and 186 deletions
@@ -41,16 +41,11 @@ use Espo\Core\Notification\AssignmentNotificator\Params;
*/
class DefaultAssignmentNotificator implements AssignmentNotificator
{
protected User $user;
protected EntityManager $entityManager;
protected UserEnabledChecker $userChecker;
public function __construct(User $user, EntityManager $entityManager, UserEnabledChecker $userChecker)
{
$this->user = $user;
$this->entityManager = $entityManager;
$this->userChecker = $userChecker;
}
public function __construct(
protected User $user,
protected EntityManager $entityManager,
protected UserEnabledChecker $userChecker
) {}
public function process(Entity $entity, Params $params): void
{