You are here

protected function Fast404::isCli in Fast 404 8

Same name and namespace in other branches
  1. 8.2 src/Fast404.php \Drupal\fast404\Fast404::isCli()

Check the type of interface between web server and PHP is CLI.

Return value

bool Whether or not the Server API for this build of PHP is CLI.

1 call to Fast404::isCli()
Fast404::isPathBlocked in src/Fast404.php
Make sure cli calls are not blocked.

File

src/Fast404.php, line 228

Class

Fast404
Fast404: A value object for manager Fast 404 logic.

Namespace

Drupal\fast404

Code

protected function isCli() {
  return PHP_SAPI === 'cli';
}