Skip to content

Instantly share code, notes, and snippets.

@bakura10
Created August 23, 2013 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakura10/6322923 to your computer and use it in GitHub Desktop.
Save bakura10/6322923 to your computer and use it in GitHub Desktop.
<?php
/**
* This is the config file for ZfrRest. Just drop this file into your config/autoload folder (don't
* forget to remove the .dist extension from the file), and configure it as you want
*/
return array(
'zfr_rest' => array(
/**
* The key of the object manager instance. It is retrieved from the service manager. For instance, if you
* are using Doctrine ORM Module, this value may be "doctrine.entitymanager.orm_default"
*/
// 'object_manager' => '',
/**
* Listeners options
*/
'listeners' => array(
/**
* If this listener is registered (it is by default), then any exceptions that could be thrown
* in controller is serialized to the proper format extracted from Content-Type header.
*/
// 'register_http_exception' => true,
// ...
/**
* If this listener is registered (it is not by default), it will check before routing any request
* if the request is a preflight OPTIONS request to accept or not a CORS request
*/
// 'register_cors_support' => false
),
'cors' => array(
'origin' => 'blabla'
),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment