\Amfphp_Core_Config

responsable for loading and maintaining Amfphp configuration

Summary

Methods
Properties
Constants
__construct()
$serviceFolders
$serviceNames2ClassFindInfo
$checkArgumentCount
$pluginsFolders
$pluginsConfig
$sharedConfig
$disabledPlugins
CONFIG_RETURN_ERROR_DETAILS
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

CONFIG_RETURN_ERROR_DETAILS

CONFIG_RETURN_ERROR_DETAILS

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;

Properties

$serviceFolders

$serviceFolders : \<array>

paths to folders containing services(relative or absolute)

Type

\ — of paths

$serviceNames2ClassFindInfo

$serviceNames2ClassFindInfo : \<array>

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

Type

\ — of ClassFindInfo

$checkArgumentCount

$checkArgumentCount : Boolean

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

Type

Boolean

$pluginsFolders

$pluginsFolders : array

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

Type

array

$pluginsConfig

$pluginsConfig : array

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.

Type

array

$sharedConfig

$sharedConfig : array

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

Type

array

$disabledPlugins

$disabledPlugins : array

array of plugins that are available but should be disabled

Type

array

Methods

__construct()

__construct()

constructor