Files
faveo/vendor/sly/notification-pusher/doc/create-an-adapter.md
Sujit Prasad ffa56a43cb update v1.0.7.9 R.C.
This is a Release Candidate. We are still testing.
2016-08-03 20:04:36 +05:30

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 notifications
  • supports: return the token condition for using the adapter
  • getDefaultParameters: returns default parameters used by the adapter
  • getRequiredParameters: returns required parameters used by the adapter

Feel free to observe existent adapters for concrete example.

Documentation index