ExamGecko
Question list
Search
Search

Question 18 - AD0-E717 discussion

Report
Export

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

A.
suggest*: {
Answers
A.
suggest*: {
B.
} optional': {
Answers
B.
} optional': {
C.
} soft': {
Answers
C.
} soft': {
D.
}
Answers
D.
}
Suggested answer: C

Explanation:

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

{

'name': 'Vendor/Module',

'description': 'This is a sample module',

'type': 'magento2-module',

'version': '1.0.0',

'require': {

'php': '~7.3.0',

'magento/framework': '^2.4.0',

'soft': {

'magento/module-catalog': '^2.4.0'

}

}

}

asked 02/10/2024
Anass Chadid ansari
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first