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

### Methods

## constructor.

    __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

### Parameters

#### $config

`array`

optional key/value pairs in an associative array. Used to override default configuration values.

## grabs serviceFolderPaths from config

    filterServiceFolderPaths(array $serviceFolderPaths)

### Parameters

#### $serviceFolderPaths

`array`

serviceFolderPaths array of absolute paths

## grabs serviceNames2ClassFindInfo from config and add discovery service

    filterServiceNames2ClassFindInfo(array $serviceNames2ClassFindInfo)

### Parameters

#### $serviceNames2ClassFindInfo

`array`

associative array of key -> class find info

### Properties

##

    $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.