Move code to event handlers instead of registration routine.

This commit is contained in:
James Cole
2016-03-28 19:50:24 +02:00
parent 70c8a524cd
commit cc88d5962e
6 changed files with 168 additions and 29 deletions

View File

@@ -44,6 +44,10 @@ class EventServiceProvider extends ServiceProvider
'Illuminate\Auth\Events\Logout' => [
'FireflyIII\Handlers\Events\UserEventListener@onUserLogout',
],
'FireflyIII\Events\UserRegistration' => [
'FireflyIII\Handlers\Events\SendRegistrationMail',
'FireflyIII\Handlers\Events\AttachUserRole',
],
];
/**