websign-dev/sillbeam-core · v0.3.0

Application

Note on Application::doRun(): The original description retained below lists diagnostic codes 0/1/2. For sillbeam:graph, Core v0.3.0 additionally uses exit code 3 for invocation/selection errors and 4 for renderer/output failures.

\Sillbeam\Core\Console · class

Type information

\Sillbeam\Core\Console\Application

Symfony console adapter that provides architecture, module inspection, graph, report and doctor commands before container boot.

Other commands retain Symfony dispatch. Use this class in the existing console bootstrap to obtain diagnostics even when container compilation fails.

Methods (3)

doRun()

\Sillbeam\Core\Console\Application::doRun()

Dispatches diagnostic commands without booting the container and delegates other commands to Symfony.

Writes command/help/error output; diagnostic commands use status codes 0, 1 and 2.

public function doRun(InputInterface $input, OutputInterface $output): int

find()

\Sillbeam\Core\Console\Application::find()

Resolves diagnostic commands before container boot; delegates other names to Symfony.

public function find(string $name): Command

get()

\Sillbeam\Core\Console\Application::get()

Returns a diagnostic command without container boot; delegates other names to Symfony.

public function get(string $name): Command