Skip to content

ColorPreservingProcessEnvironmentConfigurator

github-actions edited this page Apr 24, 2026 · 1 revision

Keeps nested process output color-friendly without requiring PTY support.


Methods

__construct

public __construct(\FastForward\DevTools\Environment\EnvironmentInterface $environment, \FastForward\DevTools\Console\Output\OutputCapabilityDetectorInterface $outputCapabilityDetector): mixed

Parameters:

Parameter Type Description
$environment \FastForward\DevTools\Environment\EnvironmentInterface reads parent process environment variables
$outputCapabilityDetector \FastForward\DevTools\Console\Output\OutputCapabilityDetectorInterface detects TTY/decorated output capabilities

configure

Configures color-related environment variables for nested commands.

public configure(\Symfony\Component\Process\Process $process, \Symfony\Component\Console\Output\OutputInterface $output): void

Parameters:

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

Clone this wiki locally