CachingDetector implements ResourceDetector
Read onlyYes
FinalYes
The file cache never expires: wrap only runtime-stable detection.
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 $detector[, string|null $cachePath = null ]) : mixed
Parameters
- $detector : ResourceDetector
- $cachePath : string|null = null
detect()
Detect resource attributes from the environment.
public
detect() : Resource