Skip to content

Ensure that a single command failure logs the error (file or stderr) without stopping the execution of subsequent CLI commands. #40006

Open
@Genaker

Description

@Genaker

foreach ($this->getCommandsClasses() as $class) {
if (class_exists($class)) {
$commands[] = $this->objectManager->get($class);
} else {
throw new \Exception('Class ' . $class . ' does not exist');
}
}

Metadata

Metadata

Labels

Issue: needs updateAdditional information is require, waiting for response

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions