CommandLineOrUnsafeMethod::isCli

protected CommandLineOrUnsafeMethod::isCli()

Indicates whether this is a CLI request.

File

core/lib/Drupal/Core/PageCache/RequestPolicy/CommandLineOrUnsafeMethod.php, line 29

Class

CommandLineOrUnsafeMethod
Reject when running from the command line or when HTTP method is not safe.

Namespace

Drupal\Core\PageCache\RequestPolicy

Code

protected function isCli() {
  return PHP_SAPI === 'cli';
}
doc_Drupal
2016-10-29 08:50:11
Comments
Leave a Comment

Please login to continue.