analyses existing services.

Warning: if 2 or more services have the same name, t-only one will appear in the returned data, as it is an associative array using the service name as key.

package Amfphp_Plugins_Discovery
author Ariel Sommeria-Klein

 Methods

get method roles

_getMethodRoles(string $methodName) : array

Parameters

$methodName

string

Returns

array

does the actual collection of data about available services

discover() : array

Returns

arrayof AmfphpDiscovery_ServiceInfo

returns a list of available services

getServiceNames(array $serviceFolderPaths, array $serviceNames2ClassFindInfo) : array

Parameters

$serviceFolderPaths

array

$serviceNames2ClassFindInfo

array

Returns

arrayof service names

extracts - types from param tags.

parseMethodComment(string $comment) : \array{'returns'

type is first word after tag name, name of the variable is second word ($ is removed) - return tag

Parameters

$comment

string

Returns

\array{'returns'=> type, 'params' => array{var name => type}}

finds classes in folder.

searchFolderForServices(string $rootPath, string $subFolder) : array

If in subfolders add the relative path to the name. recursive, so use with care.

Parameters

$rootPath

string

$subFolder

string

Returns

array

 Properties

 

of strings(patterns)

$excludePaths : array
 

$restrictAccess : boolean
 

$serviceFolderPaths : array

set by plugin.

 

of ClassFindInfo. set by plugin.

$serviceNames2ClassFindInfo : array