Skip to content

Commit

Permalink
Disable in CLI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed Aug 6, 2017
1 parent e106999 commit 058c29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Controller/ResultPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function aroundRenderResult(
) {
$result = $proceed($response);

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

Expand Down

0 comments on commit 058c29c

Please sign in to comment.