Skip to content
Merged
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
Update 7. Utilize the CLI.md
  • Loading branch information
chuongnh3atgmaildotcom authored Jan 19, 2019
commit 3635dfc36d45be2f2f9c0730cdae9fdb2fd83d0a
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ Production - max speed, no errors, no file generation:
- static not created dynamically, must be deployed
- not need for www-data to write, pub/static can be read-only

### Commands explaination
#### setup:di:compile
1. [Code compilation includes the following (in no particular order):](https://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-compiler.html)
* Application code generation (factories, proxies)
* Area configuration aggregation (optimized dependency injection configurations per area)

see [generated/metadata](https://devdocs.magento.com/guides/v2.3/extension-dev-guide/code-generation.html#codegen-om)
* Interceptor generation (optimized code generation of interceptors)
* Interception cache generation
* Repositories code generation (generated code for APIs)
* Service data attributes generation (generated extension classes for data objects)
* [Running setup:di:compile places the app into a special mode](https://www.cadence-labs.com/2017/07/magento-2-run-setupdicompile/)

### How to add CLI commands (off-topic)

Magento 2 CLI is based on the Symfony Console component.
Expand Down