-
-
Notifications
You must be signed in to change notification settings - Fork 0
RuntimeEnvironment
github-actions edited this page Apr 28, 2026
·
1 revision
Resolves common runtime-environment flags used by DevTools integrations.
- Full name:
\FastForward\DevTools\Environment\RuntimeEnvironment - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\DevTools\Environment\RuntimeEnvironmentInterface - This class is a Final class
public __construct(\FastForward\DevTools\Environment\EnvironmentInterface $environment): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$environment |
\FastForward\DevTools\Environment\EnvironmentInterface | reads raw process environment variables |
Returns whether a truthy environment flag is enabled.
public isEnabled(string $name): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$name |
string | the environment variable name |
Return Value:
true when the environment variable is enabled
Returns whether the current process runs in GitHub Actions.
public isGithubActions(): boolReturns whether the current process runs in a CI environment.
public isCi(): boolReturns whether the Composer test suite runtime flag is enabled.
public isComposerTestRun(): bool