Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Last active December 17, 2015 15:18
Show Gist options
  • Save xcommerce-gists/5630203 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/5630203 to your computer and use it in GitHub Desktop.
Magento app/config.xml showing custom data format factory for extensibility alpha-1
<global>
<webhook>
<formats>
<json>
<label>My-JSON</label>
<options>
<default_formatter>Mage_Webhook_Model_Formatter_Json</default_formatter>
</options>
<formatter_factory>MyCustomClass_Webhook_Model_Formatter_Factory_Json</formatter_factory>
</json>
</formats>
<subscriber_id>
<version>1.1</version>
<format>My-JSON</format>
<name>Test subscriber</name>
... portions omitted intentionally
</subscriber_id>
</webhook>
</global>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment