Skip to content

Reference

phil/console-bundle

Domain

ClassRole
Domain\Attribute\ForbidEnvironmentThe environments a command refuses to run in
Domain\Attribute\ConfirmEnvironmentThe environments that ask for a confirmation; all without a name
Domain\ValueObject\EnvironmentGuardsThe guards of one command, added up
Domain\ValueObject\ConsoleSettingsThe configuration of the output
Domain\ValueObject\RunSummaryThe summary line of a command
Domain\TimestampFormatiso, relative
Domain\SummaryModealways, verbose, never
Domain\ElapsedThe seconds between two moments
Domain\Exception\ConsoleExceptionThe marker of the bundle's exceptions
Domain\Exception\InvalidGuardAn attribute written wrong
Domain\Exception\EnvironmentRefusedA command refused, code 77

Application

ClassRole
Application\Contract\DebugSwitchThe port of --debug-phil
Application\Contract\MemoryGaugeThe port of the summary's memory
Application\EnvironmentGuardHolds a command to its guards

Infrastructure

ClassRole
Infrastructure\Console\CommandGuardReaderThe guards of a command, read by reflection
Infrastructure\Console\ConsoleOptionsThe options added to the running command
Infrastructure\Console\StreamStampsAttaches and detaches the timestamps of an output's streams
Infrastructure\Console\LineStamperThe time before each line of one stream
Infrastructure\Console\TimestampFilterThe stream filter of the stamper
Infrastructure\EventListener\ConsoleListenerThe listener of console.command and console.terminate
Infrastructure\Command\LintGuardsCommandlint:console-guards
Infrastructure\Monolog\ChannelDebugSwitchThe debug switch of Monolog channels
Infrastructure\Monolog\OutputHandlerThe handler that writes records to a console output
Infrastructure\Runtime\PhpMemoryGaugePHP's memory
Infrastructure\Runtime\SystemClockThe system's time
Infrastructure\DependencyInjection\ConsoleServicesThe services of the configuration
Infrastructure\DependencyInjection\LoggerChannelsPassThe Monolog channels given to the switch
PhilConsoleBundleThe bundle and its configuration

Options

OptionEffect
--timestamps[=iso|relative|none]The time before each line
--force-environmentRuns a command that asks for a confirmation without asking
--debug-phil[=channel,...]The debug logs of Monolog channels