Class Amfphp_Core_Config

Description

responsable for loading and maintaining Amfphp configuration

  • author: Ariel Sommeria-klein

Located in /Amfphp/Core/Config.php (line 19)


	
			
Direct descendents
Class Description
TestServicesConfig testing requires some services. They are described here.
Class Constant Summary
 CONFIG_FORCE_AMF3 = 'forceAmf3'
 CONFIG_RETURN_ERROR_DETAILS = 'returnErrorDetails'
Variable Summary
Method Summary
Amfphp_Core_Config __construct ()
Variables
Boolean $checkArgumentCount = true (line 42)

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

  • access: public
array $disabledPlugins (line 94)

array of plugins that are available but should be disabled

  • access: public
array $pluginsConfig (line 58)

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.

  • access: public
array $pluginsFolders (line 48)

paths to the folder containing the plugins. defaults to AMFPHP_ROOTPATH . '/Plugins/'

  • access: public
$serviceFolderPaths (line 25)

paths to folders containing services(relative or absolute)

  • var: of paths
  • access: public
$serviceNames2ClassFindInfo (line 34)

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 "\'!

  • var: of ClassFindInfo
  • access: public
array $sharedConfig (line 65)

array containing configuration data that is shared between the plugins. The format is paramName/paramValue pairs as an array.

  • access: public
Methods
Constructor __construct (line 96)
  • access: public
Amfphp_Core_Config __construct ()

Redefined in descendants as:
Class Constants
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