Skip to content

Commit 09deffb

Browse files
committed
Update usage of ./yii for latest application template tags
1 parent ef78148 commit 09deffb

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

src/guide/security/authorization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ return [
191191
Apply migrations:
192192

193193
```
194-
APP_ENV=dev ./yii migrate:up
194+
./yii migrate:up
195195
```
196196

197197
### Building authorization data <span id="generating-rbac-data"></span>
@@ -303,7 +303,7 @@ return [
303303
You can execute the command above from the console the following way:
304304

305305
```
306-
APP_ENV=dev ./yii rbac:init
306+
./yii rbac:init
307307
```
308308

309309
> If you don't want to hardcode what users have certain roles, don't put `->assign()` calls into the command. Instead,
@@ -316,7 +316,7 @@ APP_ENV=dev ./yii rbac:init
316316
You can use [migrations](../databases/db-migrations.md)
317317
to initialize and change hierarchy via APIs offered by `\Yiisoft\Rbac\ManagerInterface`.
318318

319-
Create new migration using `APP_ENV=dev ./yii migrate:create init_rbac` then implement creating a hierarchy:
319+
Create new migration using `./yii migrate:create init_rbac` then implement creating a hierarchy:
320320

321321
```php
322322
<?php
@@ -377,7 +377,7 @@ final class M260112125812InitRbac implements RevertibleMigrationInterface
377377
> If you don't want to hardcode which users have certain roles, don't put `->assign()` calls in migrations. Instead,
378378
create either UI or console command to manage assignments.
379379

380-
You could apply migration by using `APP_ENV=dev ./yii migrate:up`.
380+
You could apply migration by using `./yii migrate:up`.
381381

382382
## Assigning roles to users
383383

src/guide/start/creating-project.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,7 @@ You can choose a different directory name if you want.
4444
Go into the newly created directory and run:
4545

4646
```sh
47-
APP_ENV=dev ./yii serve --port=80
48-
```
49-
50-
For Windows Command Prompt users, run:
51-
52-
```cmd
53-
set APP_ENV=dev
54-
yii serve --port=80
55-
```
56-
57-
For Windows PowerShell users, run:
58-
59-
```powershell
60-
$env:APP_ENV = "dev"
61-
.\yii serve --port=80
47+
./yii serve --port=80
6248
```
6349

6450
For Docker users, run:

src/guide/start/workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is useful [debugger tool](https://github.com/yiisoft/yii-debug) provided by
1818
debugging information, such as log messages, response statuses, the database queries run, and so on.
1919
-->
2020

21-
In addition to the web application, you can access a console script via `APP_ENV=dev ./yii` or, in case of Docker, `make yii`.
21+
In addition to the web application, you can access a console script via `./yii` or, in case of Docker, `make yii`.
2222
Use this script to run background and maintenance tasks for the application, which the
2323
[Console Application Section](../tutorial/console-applications.md) describes.
2424

0 commit comments

Comments
 (0)