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

Commit

Permalink
Added information about the ability to define area for dev:di:info CL…
Browse files Browse the repository at this point in the history
…I command
  • Loading branch information
rostislav committed Aug 30, 2024
1 parent 3eefbf4 commit f7ea0db
Showing 1 changed file with 42 additions and 0 deletions.
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

0 comments on commit f7ea0db

Please sign in to comment.