Copied!

Represents an invokable command.

CloneableInstantiable
Methods
public __construct(Symfony\Component\Console\Command\Command $command, callable $code)
public __invoke(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) : int
 

Invokes a callable with parameters generated from the input interface.

public configure(Symfony\Component\Console\Input\InputDefinition $definition) : void
 

Configures the input definition from an invokable-defined function.

Processes the parameters of the reflection function to extract and add arguments or options to the provided input definition.

public getSubscribedSignals() : array
public handleSignal(int $signal, int|false $previousExitCode = 0) : int|false
Properties
private readonly Closure $code
private readonly Symfony\Component\Console\Command\Command $command
private readonly ReflectionFunction $reflection
private readonly ?Symfony\Component\Console\Command\SignalableCommandInterface $signalableCommand
private bool $triggerDeprecations = false
Methods
private getClosure(callable $code) : Closure
private getParameters(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) : array
© 2025 Bruce Wells