private function getDescriptionFromCommand(string $commandName): string
    {
        $commands = $this->consoleKernel->all();
        if (!isset($commands[$commandName])) {
            return '';
        }

        try {
            $className = get_class($commands[$commandName]);
            $reflection = new \ReflectionClass($className);
            return (string)$reflection->getDefaultProperties()['description'];
        } catch (\ReflectionException $exception) {
            return '';
        }
    }
private function getDescriptionFromCommand(string $commandName): string
    {
        $commands = $this->consoleKernel->all();
        if (!isset($commands[$commandName])) {
            return '';
        }

        try {
            $className = get_class($commands[$commandName]);
            $reflection = new \ReflectionClass($className);
            return (string)$reflection->getDefaultProperties()['description'];
        } catch (\ReflectionException $exception) {
            return '';
        }
    }
private function getDescriptionFromCommand ( string $ commandName ) : string { $ commands = $ this -> consoleKernel -> all ( ) ; if ( ! isset ( $ commands [ $ commandName ] ) ) { return '' ; } try { $ className = get_class ( $ commands [ $ commandName ] ) ; $ reflection = new \ ReflectionClass ( $ className ) ; return ( string ) $ reflection -> getDefaultProperties ( ) [ 'description' ] ; } catch ( \ ReflectionException $ exception ) { return '' ; } }
Parse the description from the Command instead of the scheduled event

@param string $commandName
@return string
Parse the description from the Command instead of the scheduled event