adds the discovery service, a service that returns information about available services.
Access is restricted by default(see restrictAccess below)
package | Amfphp_Plugins_Discovery |
---|---|
author | Ariel Sommeria-Klein |
__construct(array $config)
adds filters to grab config about services and add discovery service. Low priority so that other plugins can add their services first
array
optional key/value pairs in an associative array. Used to override default configuration values.
filterServiceFolderPaths(array $serviceFolderPaths)
array
serviceFolderPaths array of absolute paths
filterServiceNames2ClassFindInfo(array $serviceNames2ClassFindInfo)
array
associative array of key -> class find info
$excludePaths
ignore dBug.php, an entire directory called 'classes' and also a subdirectory of one of the service directories (Vo/) $this->pluginsConfig = array('AmfphpDiscovery' => array('excludePaths' => array('dBug', 'classes', 'Vo/'))); default is for ignoring Vo/ folder
$restrictAccess : boolean
default is true. Set to false if this is a private server.