ExamGecko
Question list
Search
Search

Question 21 - AD0-E711 discussion

Report
Export

Under which section should the soft dependency for a module be listed in app/code/<Vendor>/<Module>/composer.json file?

A.
soft': {} ''optional'':{
Answers
A.
soft': {} ''optional'':{
B.
}''Suggest": {
Answers
B.
}''Suggest": {
C.
}
Answers
C.
}
Suggested answer: B

Explanation:

In a composer.json file, soft dependencies for a module should be listed under the "suggest" section.

The "suggest" section is used to list packages that are recommended but not required for the module's functionality. Reference: https://getcomposer.org/doc/04-schema.md#suggest

asked 02/10/2024
Werner Deysel
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first