ChainDetector implements ResourceDetector
Read onlyYes
FinalYes
Later detectors override earlier keys.
Interfaces
- ResourceDetector
- Return an empty Resource when nothing is detected.
Methods
- __construct() : mixed
- detect() : Resource
- Detect resource attributes from the environment.
Methods
__construct()
public
__construct(ResourceDetector ...$detectors) : mixed
Parameters
- $detectors : ResourceDetector
detect()
Detect resource attributes from the environment.
public
detect() : Resource