Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Added information about the ability to define area for dev:di:info CLI command, Fixes #38758 #9562

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added information about the ability to define area for dev:di:info CL…
…I command
  • Loading branch information
rostislav committed Aug 30, 2024
commit f7ea0db5e46f4872adbea04bbd62fb2ea7d3873b
42 changes: 42 additions & 0 deletions src/guides/v2.4/extension-dev-guide/build/di-xml-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,48 @@ Plugins for the Preference:
+-----------------------------------------------------+---------+--------+
```

By default, the information is output for the GLOBAL area, but you can specify any of the available ones. For example:

```bash
bin/magento dev:di:info "Magento\Framework\App\RouterList" adminhtml
```

```terminal
DI configuration for the class Magento\Framework\App\RouterList in the ADMINHTML area

Preference: Magento\Framework\App\RouterList

Constructor Parameters:
+---------------+------------------------------------------+---------------------------------------------------------------------------+
| Name | Requested Type | Configured Value |
+---------------+------------------------------------------+---------------------------------------------------------------------------+
| objectManager | Magento\Framework\ObjectManagerInterface | |
| routerList | | { |
| | | "admin": { |
| | | "class": "string Magento\\Backend\\App\\Router", |
| | | "disable": "string ", |
| | | "sortOrder": "string 10" |
| | | }, |
| | | "default": { |
| | | "class": "string Magento\\Framework\\App\\Router\\DefaultRouter", |
| | | "disable": "string ", |
| | | "sortOrder": "string 100" |
| | | } |
| | | } |
+---------------+------------------------------------------+---------------------------------------------------------------------------+

Plugins:
+--------+--------+------+
| Plugin | Method | Type |
+--------+--------+------+

Plugins for the Preference:
+--------+--------+------+
| Plugin | Method | Type |
+--------+--------+------+
```


{:.ref-header}
Related topics

Expand Down
Loading