AD0-E722 Web TestEngine demo

Exit VCEDump AD0-E722 Adobe Commerce Architect Master
Question 5 of 8
0% complete
Q5 Single choice

While developing a new functionality for a website in developer mode with all cache types enabled, an Adobe Commerce Developer needs to add \Magento\Sales\Model\Service\InvoiceService SinvoiceService as a new dependency to an existing page action controller in Vendor\CustomModule\Controller\Index
\Index . This is accomplished as follows:

Question 5 diagram

After cleaning the f ull_page cache and reloading the page, the developer encounters the following exception:

Recoverable Error: Argument 2 passed to Vendor\CustomModule\Controller\Index\Index::__construct() must be an instance of

\Magento\Sales\Model\Service\InvoiceService [...

] Which action should the Architect recommend to the developer to fix this error?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in