Send an email when a server is marked as installed (#1213)

Co-authored-by: @stanjg
This commit is contained in:
Stan 2018-07-01 23:34:40 +02:00 committed by Dane Everitt
parent c42605e495
commit 1ffb5acfad
7 changed files with 141 additions and 1 deletions

View file

@ -2,6 +2,8 @@
namespace Pterodactyl\Providers;
use Pterodactyl\Events\Server\Installed as ServerInstalledEvent;
use Pterodactyl\Notifications\ServerInstalled as ServerInstalledNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
@ -11,5 +13,9 @@ class EventServiceProvider extends ServiceProvider
*
* @var array
*/
protected $listen = [];
protected $listen = [
ServerInstalledEvent::class => [
ServerInstalledNotification::class,
],
];
}