Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xcommerce-gists/5629470 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/5629470 to your computer and use it in GitHub Desktop.
Magento data format: Mage_Webhook_Model_Formatter_Interface for extensibility alpha-1
interface Mage_Webhook_Model_Formatter_Interface
{
const CONTENT_TYPE_HEADER = 'Content-type';
/**
* @param Mage_Webhook_Model_Event_Interface $event
* @return Mage_Webhook_Model_Message
*/
public function format(Mage_Webhook_Model_Event_Interface $event);
/**
* @param Mage_Webhook_Model_Message_Interface $message
* @return Mage_Webhook_Model_Message_Interface
*/
public function decode(Mage_Webhook_Model_Message_Interface $message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment