-
-
Notifications
You must be signed in to change notification settings - Fork 94
Fix #406: Clarify console application setup — template vs. component #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,18 +2,25 @@ | |||||
|
|
||||||
| Console applications are mainly used to create utility, background processing and maintenance tasks. | ||||||
|
|
||||||
| To get support for console application in your project, get `yiisoft/yii-console` via composer: | ||||||
| ## Getting started | ||||||
|
|
||||||
| If you're using [yiisoft/app](https://github.com/yiisoft/app) or | ||||||
| [yiisoft/app-api](https://github.com/yiisoft/app-api), console support is already included. | ||||||
| You can access the entry point as: | ||||||
|
|
||||||
| ``` | ||||||
| composer require yiisoft/yii-console | ||||||
| ./yii | ||||||
| ``` | ||||||
|
|
||||||
| After it's installed, you can access the entry point as | ||||||
| If you want a standalone console-only application, use the | ||||||
| [yiisoft/app-console](https://github.com/yiisoft/app-console) project template: | ||||||
|
|
||||||
| ```sh | ||||||
| composer create-project yiisoft/app-console your-project | ||||||
| ``` | ||||||
| ./yii | ||||||
| ``` | ||||||
|
|
||||||
| To add console support to an existing project from scratch, refer to the | ||||||
|
||||||
| To add console support to an existing project from scratch, refer to the | |
| To manually add console support to an existing project, refer to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrasing "You can access the entry point as:" is grammatically awkward for this context. Consider rewording to something like "Run the entry point script:" / "Use the entry point script:" to make the instruction clearer.