Skip to content

Add getIsWebRequest#15690

Merged
brandonkelly merged 6 commits into4.13from
feature/isWebRequest
Sep 6, 2024
Merged

Add getIsWebRequest#15690
brandonkelly merged 6 commits into4.13from
feature/isWebRequest

Conversation

@timkelty
Copy link
Copy Markdown
Contributor

@timkelty timkelty commented Sep 6, 2024

Description

Companion to \yii\base\Request::getIsConsoleRequest.

Nothing that can't be done with an instanceof check or !Craft::$app->getRequest()->isConsoleRequest, but if feels awkward to have one and not the other, and can make your conditions more readable.

@timkelty timkelty changed the base branch from 5.x to 4.x September 6, 2024 13:51
@brandonkelly brandonkelly changed the base branch from 4.x to 4.13 September 6, 2024 16:49
@brandonkelly brandonkelly merged commit c18ab45 into 4.13 Sep 6, 2024
@brandonkelly brandonkelly deleted the feature/isWebRequest branch September 6, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants