responsable for loading and maintaining Amfphp configuration
Located in /Amfphp/Core/Config.php (line 19)
| Class | Description |
|---|---|
| TestServicesConfig | testing requires some services. They are described here. |
set to true if you want the service router to check if the number of arguments received by amfPHP matches with the method being called.
This should be set to false in production for performance reasons default is true
array of plugins that are available but should be disabled
array containing untyped plugin configuration data. Add as needed. The advised format is the name of the plugin as key, and then paramName/paramValue pairs as an array.
example: array('plugin' => array( 'paramName' =>'paramValue')) The array( 'paramName' =>'paramValue') will be passed as is to the plugin at construction time.
paths to the folder containing the plugins. defaults to AMFPHP_ROOTPATH . '/Plugins/'
paths to folders containing services(relative or absolute)
a dictionary of service classes represented in a ClassFindInfo.
The key is the name of the service, the value is the class find info. for example: $serviceNames2ClassFindInfo["AmfphpDiscoveryService"] = new Amfphp_Core_Common_ClassFindInfo( dirname(__FILE__) . '/AmfphpDiscoveryService.php', 'AmfphpDiscoveryService'); The forward slash is important, don't use "\'!
array containing configuration data that is shared between the plugins. The format is paramName/paramValue pairs as an array.
CONFIG_FORCE_AMF3
= 'forceAmf3'
(line 87)
historically, amf0 is default, and amf3 is only used if amf3 is detected in the request.
Set this to true to override this behavior anf always use amf3. the default is false, as this can create some serious problems with amf clients that expect amf0 but receive amf3, even if they support it. This is the case for Flash's netconnection. To use amf0 this must be set to false. for example $this->sharedConfig[self::CONFIG_FORCE_AMF3] = false;
CONFIG_RETURN_ERROR_DETAILS
= 'returnErrorDetails'
(line 76)
if true, there will be detailed information in the error messages, including confidential information like paths.
So it is advised to set to true for development purposes and to false in production. default is true. Set in the shared config. for example $this->sharedConfig[self::CONFIG_RETURN_ERROR_DETAILS] = true;
Documentation generated on Tue, 29 May 2012 23:42:02 +0200 by phpDocumentor 1.4.3