webpower/restbundle

Adds automatic JSONP support and method overwriting.

1.0 2012-11-06 14:14 UTC

README

Build Status

Adds automatic JSONP support and method overwriting.

Installation

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        new WebPower\Bundle\RestBundle\WebPowerRestBundle(),
    );
}

Configuration

The following configuration options are available

web_power_rest:
    # The key in the querystring that contains the jsonp callback name
    jsonp: "callback"
    # The key in the querystring that contains the method overwrite
    method: "_method"