-
-
Notifications
You must be signed in to change notification settings - Fork 0
ColorPreservingProcessEnvironmentConfigurator
github-actions edited this page Apr 24, 2026
·
1 revision
Keeps nested process output color-friendly without requiring PTY support.
- Full name:
\FastForward\DevTools\Process\ColorPreservingProcessEnvironmentConfigurator - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\DevTools\Process\ProcessEnvironmentConfiguratorInterface - This class is a Final class
public __construct(\FastForward\DevTools\Environment\EnvironmentInterface $environment, \FastForward\DevTools\Console\Output\OutputCapabilityDetectorInterface $outputCapabilityDetector): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$environment |
\FastForward\DevTools\Environment\EnvironmentInterface | reads parent process environment variables |
$outputCapabilityDetector |
\FastForward\DevTools\Console\Output\OutputCapabilityDetectorInterface | detects TTY/decorated output capabilities |
Configures color-related environment variables for nested commands.
public configure(\Symfony\Component\Process\Process $process, \Symfony\Component\Console\Output\OutputInterface $output): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$process |
\Symfony\Component\Process\Process | the queued process that will be started |
$output |
\Symfony\Component\Console\Output\OutputInterface | the parent output used to infer console capabilities |