Adobe Commerce Developer Expert AD0-E716 Question # 18 Topic 2 Discussion

Adobe Commerce Developer Expert AD0-E716 Question # 18 Topic 2 Discussion

AD0-E716 Exam Topic 2 Question 18 Discussion:
Question #: 18
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-E716 Question 18

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-E716 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.