Skip to content

ConsoleApplication

  • Full name: \Codefy\Framework\Console\ConsoleApplication
  • Parent class: Application

Properties

lastOutput

private \Symfony\Component\Console\Output\OutputInterface|string|null $lastOutput

codefy

protected \Codefy\Framework\Application $codefy

Methods

__construct

public __construct(\Codefy\Framework\Application $codefy): mixed

Parameters:

Parameter Type Description
$codefy \Codefy\Framework\Application

run

public run(?\Symfony\Component\Console\Input\InputInterface $input = null, ?\Symfony\Component\Console\Output\OutputInterface $output = null): int

Parameters:

Parameter Type Description
$input ?\Symfony\Component\Console\Input\InputInterface
$output ?\Symfony\Component\Console\Output\OutputInterface

call

public call(mixed $command, array $parameters = [], bool|\Symfony\Component\Console\Output\OutputInterface|null $outputBuffer = null): int

Parameters:

Parameter Type Description
$command mixed
$parameters array
$outputBuffer bool|\Symfony\Component\Console\Output\OutputInterface|null

Throws:


parseCommand

Parse the incoming Codex command and its input.

protected parseCommand(string $command, array $parameters): array

Parameters:

Parameter Type Description
$command string
$parameters array

output

Get the output for the last run command.

public output(): string


Automatically generated on 2025-10-13