#[AsCommand(name: 'debug:container', description: 'Display current services for an application')]
class ContainerDebugCommand extends Command
{ use BuildDebugContainerTrait;
protected function configure(): void
{ $this ->
setDefinition([ new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'
),
new InputOption('show-arguments', null, InputOption::VALUE_NONE, 'Show arguments in services'
),
new InputOption('show-hidden', null, InputOption::VALUE_NONE, 'Show hidden (internal) services'
),
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Show all services with a specific tag'
),
new InputOption('tags', null, InputOption::VALUE_NONE, 'Display tagged services for an application'
),
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Display a specific parameter for an application'
),
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Display parameters for an application'
),
new InputOption('types', null, InputOption::VALUE_NONE, 'Display types (classes/interfaces) available in the container'
),
new InputOption('env-var', null, InputOption::VALUE_REQUIRED, 'Display a specific environment variable used in the container'
),
new InputOption('env-vars', null, InputOption::VALUE_NONE, 'Display environment variables used in the container'
),
new InputOption('format', null, InputOption::VALUE_REQUIRED,
sprintf('The output format ("%s")',
implode('", "',
$this->
getAvailableFormatOptions())), 'txt'
),
new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw description'
),