List of questions
Related questions
Question 6 - AD0-E716 discussion
An Adobe Commerce developer is creating a new console command to perform a complex task with a lot of potential terminal output. If an error occurs, they want to provide a message that has higher visibility than some of the other content that may be appearing, so they want to ensure it is highlighted in red (as seen in the screenshot):
How can they customize the appearance of this message?
A.
Call the setDecorationType(Stype) method On the Symfony\Console\Output\OutputInterface Object before Calling writeln().
B.
Wrap the output content in tags like <error>, <info>, or <comment>.
C.
Throw a new commandException with the desired message passed as an argument.
Your answer:
0 comments
Sorted by
Leave a comment first