-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Great job in this project as I will like to use this in my yii2 api to push data eg notifications from the API to any frontend that will make my app real time using webhook. My frontend is in reactjs. I have successfully installed and migrated the package. I have tried to run index.php/webhooks?r=/webhooks/create and I am getting
TypeError
Return value of degordian\webhooks\Module::validateWebhookClass() must be an instance of degordian\webhooks\void, none returned.
Al line 62 of /vendor/degordian/yii2-webhooks/src/Module.php.
I am using Yii2 Advance and I have created it as an API.
Here is part of my config/main.php
'bootstrap' => ['log', 'webhooks'],
'modules' => [
'v1' => [
'basePath' => '@app/modules/v1',
'class' => 'api\modules\v1\Module',
],
'webhooks' => [
'class' => 'degordian\webhooks\Module',
'eventDispatcherComponentClass' => 'app\components\MyDispatcher',
],
],
Please is the error coming from my end and How do I fix this ??