Adobe Commerce Developer Professional AD0-E724 Question # 35 Topic 2 Discussion

Adobe Commerce Developer Professional AD0-E724 Question # 35 Topic 2 Discussion

AD0-E724 Exam Topic 2 Question 35 Discussion:
Question #: 35
Topic #: 2

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):

AD0-E724 Question 35

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 , , or .


C.

Throw a new commandException with the desired message passed as an argument.


Get Premium AD0-E724 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.