Skip to content

ConsoleApplication


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

Properties

lastOutput

private \Symfony\Component\Console\Output\OutputInterface|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

Throws:


call

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

Parameters:

Parameter Type Description
$command class-string|string
$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