Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ services:
tags:
- { name: event_subscriber, subscribes_to: MPWAR\Module\Player\Contract\DomainEvent\PlayerRegistered }

mpwar.economy.domain_event_subscriber.give_welcome_bonus_on_account_opened:
class: MPWAR\Module\Economy\Application\DomainEventSubscriber\GiveWelcomeBonusOnAccountOpened
arguments:
- @mpwar.economy.service.transaction_processor
tags:
- { name: event_subscriber, subscribes_to: MPWAR\Module\Economy\Contract\DomainEvent\AccountOpened }


# Services

Expand All @@ -18,3 +25,9 @@ services:
- @mpwar.economy.infrastructure.account_repository
- @event_bus
public: false

mpwar.economy.service.transaction_processor:
class: MPWAR\Module\Economy\Application\Service\TransactionProcessor
arguments:
- @mpwar.economy.infrastructure.account_repository
public: false