Subscribe and unsubscribe subscribers via commands
This commit is contained in:
committed by
James Brooks
parent
11b4ab5c6c
commit
8250e4ebca
@@ -25,7 +25,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function boot(Dispatcher $dispatcher)
|
||||
{
|
||||
$dispatcher->mapUsing(function ($command) {
|
||||
return Dispatcher::simpleMapping($command, 'CachetHQ\Cachet\Commands', 'CachetHQ\Cachet\Handlers\Commands');
|
||||
return Dispatcher::simpleMapping($command, 'CachetHQ\Cachet', 'CachetHQ\Cachet\Handlers');
|
||||
});
|
||||
|
||||
Str::macro('canonicalize', function ($url) {
|
||||
|
||||
@@ -21,7 +21,7 @@ class EventServiceProvider extends ServiceProvider
|
||||
* @var array
|
||||
*/
|
||||
protected $listen = [
|
||||
'CachetHQ\Cachet\Events\CustomerHasSubscribedEvent' => [
|
||||
'CachetHQ\Cachet\Events\SubscriberHasSubscribedEvent' => [
|
||||
'CachetHQ\Cachet\Handlers\Events\SendSubscriberVerificationEmailHandler',
|
||||
],
|
||||
'CachetHQ\Cachet\Events\IncidentHasReportedEvent' => [
|
||||
|
||||
Reference in New Issue
Block a user