AgentHeader
class AgentHeader (View source)
Class containing functions used to build the Agent header.
Constants
AGENT_HEADER_KEY |
|
UNKNOWN_VERSION |
|
Methods
static array
buildAgentHeader(array $headerInfo)
No description
static string
readGapicVersionFromFile(string $callingClass)
Reads the gapic version string from a VERSION file. In order to determine the file location, this method follows this procedure:
- accepts a class name $callingClass
- identifies the file defining that class
- searches up the directory structure for the 'src' directory
- looks in the directory above 'src' for a file named VERSION
Details
static array
buildAgentHeader(array $headerInfo)
No description
static string
readGapicVersionFromFile(string $callingClass)
Reads the gapic version string from a VERSION file. In order to determine the file location, this method follows this procedure:
- accepts a class name $callingClass
- identifies the file defining that class
- searches up the directory structure for the 'src' directory
- looks in the directory above 'src' for a file named VERSION