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';
}
Please login to continue.