Skip to content

Commit

Permalink
NotificationTemplateParamsTrait - Refactor + Added supplier bank acco…
Browse files Browse the repository at this point in the history
…unt details

- Added supplier params to notification mailing. 

remp/novydenik#1269
  • Loading branch information
burithetech committed Sep 2, 2024
1 parent be37c9e commit ad698e5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/Scenarios/SendNotificationEmailToAddressesGenericEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Crm\RempMailerModule\Scenarios;

use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Models\Criteria\ScenarioParams\StringLabeledArrayParam;
use Crm\ApplicationModule\Models\Database\ActiveRowFactory;
use Crm\PaymentsModule\Models\RecurrentPaymentsResolver;
Expand All @@ -23,15 +24,16 @@ class SendNotificationEmailToAddressesGenericEvent implements ScenarioGenericEve
private array $allowedMailTypeCodes = [];

public function __construct(
private UsersRepository $usersRepository,
private Emitter $emitter,
private MailTemplatesRepository $mailTemplatesRepository,
private AddressesRepository $addressesRepository,
private ActiveRowFactory $activeRowFactory,
private SubscriptionsRepository $subscriptionsRepository,
private RecurrentPaymentsRepository $recurrentPaymentsRepository,
private PaymentsRepository $paymentsRepository,
private RecurrentPaymentsResolver $recurrentPaymentsResolver,
private readonly UsersRepository $usersRepository,
private readonly Emitter $emitter,
private readonly MailTemplatesRepository $mailTemplatesRepository,
private readonly AddressesRepository $addressesRepository,
private readonly ActiveRowFactory $activeRowFactory,
private readonly SubscriptionsRepository $subscriptionsRepository,
private readonly RecurrentPaymentsRepository $recurrentPaymentsRepository,
private readonly PaymentsRepository $paymentsRepository,
private readonly RecurrentPaymentsResolver $recurrentPaymentsResolver,
private readonly ApplicationConfig $applicationConfig,
) {
}

Expand Down

0 comments on commit ad698e5

Please sign in to comment.