Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.32 KB

create-an-adapter.md

File metadata and controls

23 lines (17 loc) · 1.32 KB

NotificationPusher - Documentation

Create an adapter

To create your own adapter, just create a class with taking care to extends \Sly\NotificationPusher\Adapter\BaseAdapter, which implicitly 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