Skip to content

Commit a739f38

Browse files
committed
cms@e3137a3
4.11.0.2 - getQueryParam() only exists for web requests
1 parent cee2ce4 commit a739f38

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

docs/.artifacts/cms/4.x/console-commands.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,65 @@ tagGroup
408408

409409

410410

411+
## `env`
412+
413+
Sets or removes environment variables in the `.env` file.
414+
415+
<h3 id="env-remove">
416+
<a href="#env-remove" class="header-anchor">#</a>
417+
<code>env/remove</code>
418+
</h3>
419+
420+
421+
Removes an environment variable from the `.env` file.
422+
423+
php craft env/remove CRAFT_DEV_MODE
424+
425+
<h4 id="env-remove-parameters" class="command-subheading">Parameters</h4>
426+
427+
name
428+
:
429+
430+
431+
432+
<h3 id="env-set">
433+
<a href="#env-set" class="header-anchor">#</a>
434+
<code>env/set</code>
435+
</h3>
436+
437+
438+
Sets an environment variable in the `.env` file.
439+
440+
php craft env/set CRAFT_DEV_MODE true
441+
442+
<h4 id="env-set-parameters" class="command-subheading">Parameters</h4>
443+
444+
name
445+
:
446+
447+
value
448+
:
449+
450+
451+
452+
<h3 id="env-show">
453+
<a href="#env-show" class="header-anchor">#</a>
454+
<code>env/show</code>
455+
</h3>
456+
457+
458+
Displays the value of an environment variable, or sets its value if $name contains `=`.
459+
460+
php craft env CRAFT_DEV_MODE
461+
php craft env CRAFT_DEV_MODE=true
462+
463+
<h4 id="env-show-parameters" class="command-subheading">Parameters</h4>
464+
465+
name
466+
:
467+
468+
469+
411470
## `exec`
412471

413472

docs/.artifacts/cms/4.x/events.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3580,6 +3580,24 @@
35803580
"type": "yii\\base\\ActionEvent",
35813581
"desc": "an event raised right after executing a controller action."
35823582
},
3583+
{
3584+
"class": "craft\\console\\controllers\\EnvController",
3585+
"name": "EVENT_DEFINE_ACTIONS",
3586+
"type": "craft\\events\\DefineConsoleActionsEvent",
3587+
"desc": "The event that is triggered when defining custom actions for this controller."
3588+
},
3589+
{
3590+
"class": "craft\\console\\controllers\\EnvController",
3591+
"name": "EVENT_BEFORE_ACTION",
3592+
"type": "yii\\base\\ActionEvent",
3593+
"desc": "an event raised right before executing a controller action. You may set `ActionEvent::isValid` to be false to cancel the action execution."
3594+
},
3595+
{
3596+
"class": "craft\\console\\controllers\\EnvController",
3597+
"name": "EVENT_AFTER_ACTION",
3598+
"type": "yii\\base\\ActionEvent",
3599+
"desc": "an event raised right after executing a controller action."
3600+
},
35833601
{
35843602
"class": "craft\\console\\controllers\\ExecController",
35853603
"name": "EVENT_DEFINE_ACTIONS",
@@ -23951,6 +23969,48 @@
2395123969
"type": "yii\\base\\Event",
2395223970
"desc": "an event raised at the end of `validate()`"
2395323971
},
23972+
{
23973+
"class": "craft\\elements\\conditions\\HasDescendantsRule",
23974+
"name": "EVENT_INIT",
23975+
"type": "yii\\base\\Event",
23976+
"desc": "The event that is triggered after the model's init cycle"
23977+
},
23978+
{
23979+
"class": "craft\\elements\\conditions\\HasDescendantsRule",
23980+
"name": "EVENT_DEFINE_BEHAVIORS",
23981+
"type": "craft\\events\\DefineBehaviorsEvent",
23982+
"desc": "The event that is triggered when defining the class behaviors"
23983+
},
23984+
{
23985+
"class": "craft\\elements\\conditions\\HasDescendantsRule",
23986+
"name": "EVENT_DEFINE_RULES",
23987+
"type": "craft\\events\\DefineRulesEvent",
23988+
"desc": "The event that is triggered when defining the model rules"
23989+
},
23990+
{
23991+
"class": "craft\\elements\\conditions\\HasDescendantsRule",
23992+
"name": "EVENT_DEFINE_FIELDS",
23993+
"type": "craft\\events\\DefineFieldsEvent",
23994+
"desc": "The event that is triggered when defining the arrayable fields"
23995+
},
23996+
{
23997+
"class": "craft\\elements\\conditions\\HasDescendantsRule",
23998+
"name": "EVENT_DEFINE_EXTRA_FIELDS",
23999+
"type": "craft\\events\\DefineFieldsEvent",
24000+
"desc": "The event that is triggered when defining the extra arrayable fields"
24001+
},
24002+
{
24003+
"class": "craft\\elements\\conditions\\HasDescendantsRule",
24004+
"name": "EVENT_BEFORE_VALIDATE",
24005+
"type": "yii\\base\\ModelEvent",
24006+
"desc": "an event raised at the beginning of `validate()`. You may set `ModelEvent::isValid` to be false to stop the validation."
24007+
},
24008+
{
24009+
"class": "craft\\elements\\conditions\\HasDescendantsRule",
24010+
"name": "EVENT_AFTER_VALIDATE",
24011+
"type": "yii\\base\\Event",
24012+
"desc": "an event raised at the end of `validate()`"
24013+
},
2395424014
{
2395524015
"class": "craft\\elements\\conditions\\HasUrlConditionRule",
2395624016
"name": "EVENT_INIT",

0 commit comments

Comments
 (0)