phpvms/resources/stubs/modules/event-service-provider.stub

26 lines
585 B
Plaintext
Raw Normal View History

<?php
namespace $MODULE_NAMESPACE$\$STUDLY_NAME$\Providers;
2017-12-06 10:33:29 +08:00
use App\Events\TestEvent;
use $MODULE_NAMESPACE$\$STUDLY_NAME$\Listeners\TestEventListener;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*/
protected $listen = [
2017-12-06 10:33:29 +08:00
TestEvent::class => [TestEventListener::class],
];
/**
* Register any events for your application.
*/
public function boot()
{
parent::boot();
}
}