of paths */ public $serviceFolders; /** * 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 */ public $serviceNames2ClassFindInfo; /** * 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 * @var Boolean */ public $checkArgumentCount = true; /** * paths to the folder containing the plugins. defaults to AMFPHP_ROOTPATH . '/Plugins/' * @var array */ public $pluginsFolders; /** * 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. * * @var array */ public $pluginsConfig; /** * array containing configuration data that is shared between the plugins. The format is paramName/paramValue pairs as an array. * * @var array */ public $sharedConfig; /** * 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; * @var Boolean */ const CONFIG_RETURN_ERROR_DETAILS = 'returnErrorDetails'; /** * array of plugins that are available but should be disabled * @var array */ public $disabledPlugins; /** * constructor */ public function __construct() { $this->serviceFolders = array(); $this->serviceFolders [] = dirname(__FILE__) . '/../Services/'; $this->serviceNames2ClassFindInfo = array(); $this->pluginsFolders = array(AMFPHP_ROOTPATH . 'Plugins/'); $this->pluginsConfig = array(); $this->sharedConfig = array(); $this->disabledPlugins = array(); //disable logging by default $this->disabledPlugins[] = 'AmfphpLogger'; //uncomment to disable monitor //$this->disabledPlugins[] = 'AmfphpMonitor'; //some useful examples of setting a config value in a plugin: //$this->pluginsConfig['AmfphpDiscovery']['restrictAccess'] = false; //$this->pluginsConfig['AmfphpVoConverter']['enforceConversion'] = true; } } ?>