Created
August 23, 2013 19:12
-
-
Save bakura10/6322923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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