webpower/restbundle

Adds automatic JSONP support and method overwriting.

Installs: 18

Dependents: 0

Stars: 1

Watchers: 2

Language: PHP

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"