If none found, an exception is thrown
this method is static so that it can be used also by the discovery service
'__' are replaced by '/' to help the client generator support packages without messing with folders and the like
the service object can either be in the global namespace or in the namespace suggested by the name.
For example a call to Sub1/Sub2/NamespaceTestService will load the PHP file in Sub1/Sub2/NamespaceTestService,
and return an instance of either NamespaceTestService or Sub1\Sub2\NamespaceTestService
public static getServiceObjectStatically ( type $serviceName, array $serviceFolders, array $serviceNames2ClassFindInfo ) : Object | ||
$serviceName | type | |
$serviceFolders | array | |
$serviceNames2ClassFindInfo | array | |
return | Object | service object |