1.2 KiB
1.2 KiB
NotificationPusher - Documentation
Create an adapter
To create your own adapter, just create a class with taking care to extends \Sly\NotificationPusher\Adapter\BaseAdapter
and implements \Sly\NotificationPusher\Adapter\AdapterInterface
which contains some required methods:
push
: contains the adapter logic to push notificationssupports
: return the token condition for using the adaptergetDefaultParameters
: returns default parameters used by the adaptergetRequiredParameters
: returns required parameters used by the adapter
Feel free to observe existent adapters for concrete example.
Documentation index
- Installation
- Getting started
- APNS adapter
- GCM adapter
- Create an adapter
- Push from CLI