\AmfphpDiscovery

adds the discovery service, a service that returns information about available services.

Access is restricted by default(see restrictAccess below)

Summary

Methods
Properties
Constants
__construct()
filterServiceFolderPaths()
filterServiceNames2ClassFindInfo()
No public properties found
No constants found
No protected methods found
$excludePaths
$restrictAccess
N/A
No private methods found
No private properties found
N/A

Properties

$excludePaths

$excludePaths : 

array of files and folders to ignore during introspection of the services dir e.g. 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

Type

$restrictAccess

$restrictAccess : boolean

restrict access to amfphp_admin, the role set when using the back office. default is true.

Type

boolean

Methods

__construct()

__construct(array $config)

constructor.

adds filters to grab config about services and add discovery service. Low priority so that other plugins can add their services first

Parameters

array $config

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

filterServiceFolderPaths()

filterServiceFolderPaths(array $serviceFolders)

grabs serviceFolders from config

Parameters

array $serviceFolders

filterServiceNames2ClassFindInfo()

filterServiceNames2ClassFindInfo(array $serviceNames2ClassFindInfo)

grabs serviceNames2ClassFindInfo from config and add discovery service

Parameters

array $serviceNames2ClassFindInfo

associative array of key -> class find info