Skip to content

Commit 058c29c

Browse files
committed
Disable in CLI mode
1 parent e106999 commit 058c29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Model/Controller/ResultPlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function aroundRenderResult(
5656
) {
5757
$result = $proceed($response);
5858

59-
if ($this->request->isXmlHttpRequest() || !$this->isEnabled()) {
59+
if (PHP_SAPI === 'cli' || $this->request->isXmlHttpRequest() || !$this->isEnabled()) {
6060
return $result;
6161
}
6262

0 commit comments

Comments
 (0)