Flow PHP

GitDetector implements ResourceDetector

Read onlyYes
FinalYes

Empty Resource without a git binary or work tree.

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([string|null $workingDirectory = null ][, string $gitBinary = 'git' ]) : mixed
Parameters
$workingDirectory : string|null = null
$gitBinary : string = 'git'
On this page

Search results