프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$checkArgumentCount | boolean | check parameters. This is useful for development, but should be disabled for production | |
$serviceFolders | paths to folders containing services(relative or absolute) | ||
$serviceNames2ClassFindInfo | of ClassFindInfo |
메소드 | 설명 | |
---|---|---|
__construct ( array $serviceFolders, array $serviceNames2ClassFindInfo, boolean $checkArgumentCount = false ) | constructor | |
executeServiceCall ( string $serviceName, string $methodName, array $parameters ) : mixed | loads and instanciates a service class matching $serviceName, then calls the function defined by $methodName using $parameters as parameters throws an exception if service not found. | |
getServiceObject ( String $serviceName ) : Object | get service object | |
getServiceObjectStatically ( type $serviceName, array $serviceFolders, array $serviceNames2ClassFindInfo ) : Object | get a service object by its name. Looks for a match in serviceNames2ClassFindInfo, then in the defined service folders. |
public getServiceObject ( String $serviceName ) : Object | ||
$serviceName | String | |
리턴 | Object | service object |
public static getServiceObjectStatically ( type $serviceName, array $serviceFolders, array $serviceNames2ClassFindInfo ) : Object | ||
$serviceName | type | |
$serviceFolders | array | |
$serviceNames2ClassFindInfo | array | |
리턴 | Object | service object |
public bool $checkArgumentCount | ||
리턴 | boolean |
public $serviceFolders |