NginxDetector
class NginxDetector implements DetectorInterface (View source)
Properties
protected Request | $request |
Methods
null|string
detect()
Determine whether this environment matches the expected service environment.
null|string
detectFromServer(string $value)
Detect from the SERVER_SOFTWARE key of the superglobal server array.
null|string
detectFromSPL(string $value)
Detect using the result of the SPL apache_get_version().
null|string
detectFromPHPInfo(string $value)
Detect using PHPInfo.
Details
__construct(Request $request)
Class constructor.
null|string
detect()
Determine whether this environment matches the expected service environment.
Returns null if not matched, or the service version if it's matched (empty string if the version is not detected).
private null|string
detectFromServer(string $value)
Detect from the SERVER_SOFTWARE key of the superglobal server array.
private null|string
detectFromSPL(string $value)
Detect using the result of the SPL apache_get_version().
private null|string
detectFromPHPInfo(string $value)
Detect using PHPInfo.