public function __construct(IUserRepository $userRepo, IResourceRepository $resourceRepo, IAttributeRepository $attributeRepo) { $notifications = array(); $notifications[] = new OwnerEmailDeletedNotification($userRepo, $attributeRepo); $notifications[] = new ParticipantDeletedEmailNotification($userRepo, $attributeRepo); $notifications[] = new AdminEmailDeletedNotification($userRepo, $userRepo, $attributeRepo); parent::__construct($notifications); }
public function __construct(IUserRepository $userRepo, IResourceRepository $resourceRepo, IAttributeRepository $attributeRepo) { $notifications = array(); $notifications[] = new OwnerEmailApprovedNotification($userRepo, $attributeRepo); // $notifications[] = new ParticipantAddedEmailNotification($userRepo); // $notifications[] = new InviteeAddedEmailNotification($userRepo); parent::__construct($notifications); }