@@ -22,33 +22,33 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | class EventServiceProvider extends ServiceProvider { |
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * The event handler mappings for the application. |
|
| 27 | - * |
|
| 28 | - * @var array |
|
| 29 | - */ |
|
| 30 | - protected $listen = [ |
|
| 31 | - 'payment.create' => [ |
|
| 32 | - 'BB\Handlers\PaymentEventHandler@onCreate', |
|
| 33 | - ], |
|
| 25 | + /** |
|
| 26 | + * The event handler mappings for the application. |
|
| 27 | + * |
|
| 28 | + * @var array |
|
| 29 | + */ |
|
| 30 | + protected $listen = [ |
|
| 31 | + 'payment.create' => [ |
|
| 32 | + 'BB\Handlers\PaymentEventHandler@onCreate', |
|
| 33 | + ], |
|
| 34 | 34 | 'payment.delete' => [ |
| 35 | - 'BB\Handlers\PaymentEventHandler@onDelete', |
|
| 36 | - ], |
|
| 35 | + 'BB\Handlers\PaymentEventHandler@onDelete', |
|
| 36 | + ], |
|
| 37 | 37 | 'payment.cancelled' => [ |
| 38 | - 'BB\Handlers\PaymentEventHandler@onCancel', |
|
| 39 | - ], |
|
| 38 | + 'BB\Handlers\PaymentEventHandler@onCancel', |
|
| 39 | + ], |
|
| 40 | 40 | 'payment.paid' => [ |
| 41 | - 'BB\Handlers\PaymentEventHandler@onPaid', |
|
| 42 | - ], |
|
| 41 | + 'BB\Handlers\PaymentEventHandler@onPaid', |
|
| 42 | + ], |
|
| 43 | 43 | 'BB\Events\SubscriptionChargePaid' => [ |
| 44 | 44 | ExtendMembership::class |
| 45 | 45 | ], |
| 46 | 46 | 'sub-charge.processing' => [ |
| 47 | - 'BB\Handlers\SubChargeEventHandler@onProcessing', |
|
| 48 | - ], |
|
| 47 | + 'BB\Handlers\SubChargeEventHandler@onProcessing', |
|
| 48 | + ], |
|
| 49 | 49 | 'sub-charge.payment-failed' => [ |
| 50 | - 'BB\Handlers\SubChargeEventHandler@onPaymentFailure', |
|
| 51 | - ], |
|
| 50 | + 'BB\Handlers\SubChargeEventHandler@onPaymentFailure', |
|
| 51 | + ], |
|
| 52 | 52 | 'BB\Events\NewExpenseSubmitted' => [ |
| 53 | 53 | EmailTrusteesAboutExpense::class, |
| 54 | 54 | ], |
@@ -78,25 +78,25 @@ discard block |
||
| 78 | 78 | MemberBalanceChanged::class => [ |
| 79 | 79 | RecalculateMemberBalance::class |
| 80 | 80 | ], |
| 81 | - SubscriptionPayment\FailedInsufficientFunds::class => [ |
|
| 82 | - EmailMemberAboutFailedSubscriptionPayment::class |
|
| 83 | - ], |
|
| 84 | - SubscriptionPayment\InsufficientFundsTryingDirectDebit::class => [ |
|
| 85 | - EmailMemberAboutFailedSubscriptionPaymentGoingToBackup::class |
|
| 86 | - ], |
|
| 87 | - ]; |
|
| 81 | + SubscriptionPayment\FailedInsufficientFunds::class => [ |
|
| 82 | + EmailMemberAboutFailedSubscriptionPayment::class |
|
| 83 | + ], |
|
| 84 | + SubscriptionPayment\InsufficientFundsTryingDirectDebit::class => [ |
|
| 85 | + EmailMemberAboutFailedSubscriptionPaymentGoingToBackup::class |
|
| 86 | + ], |
|
| 87 | + ]; |
|
| 88 | 88 | |
| 89 | - /** |
|
| 90 | - * Register any other events for your application. |
|
| 91 | - * |
|
| 92 | - * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
| 93 | - * @return void |
|
| 94 | - */ |
|
| 95 | - public function boot(DispatcherContract $events) |
|
| 96 | - { |
|
| 97 | - parent::boot($events); |
|
| 89 | + /** |
|
| 90 | + * Register any other events for your application. |
|
| 91 | + * |
|
| 92 | + * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
| 93 | + * @return void |
|
| 94 | + */ |
|
| 95 | + public function boot(DispatcherContract $events) |
|
| 96 | + { |
|
| 97 | + parent::boot($events); |
|
| 98 | 98 | |
| 99 | - // |
|
| 100 | - } |
|
| 99 | + // |
|
| 100 | + } |
|
| 101 | 101 | |
| 102 | 102 | } |