|
|
@ -21,7 +21,9 @@ class BaseCommand extends Command {
|
|
|
|
if ($attribute = $reflectionClass->getAttributes(CliCommand::class)) {
|
|
|
|
if ($attribute = $reflectionClass->getAttributes(CliCommand::class)) {
|
|
|
|
/** @var CliCommand $cliCommandAttribute */
|
|
|
|
/** @var CliCommand $cliCommandAttribute */
|
|
|
|
$cliCommandAttribute = $attribute[0]->newInstance();
|
|
|
|
$cliCommandAttribute = $attribute[0]->newInstance();
|
|
|
|
return $cliCommandAttribute->name;
|
|
|
|
if ($cliCommandAttribute->name !== null) {
|
|
|
|
|
|
|
|
return $cliCommandAttribute->name;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (($name = parent::getDefaultName()) !== null) {
|
|
|
|
if (($name = parent::getDefaultName()) !== null) {
|
|
|
|
return $name;
|
|
|
|
return $name;
|
|
|
|