You are here

protected function OpcodeCache::isCli in Automatic Updates 8

Determine if PHP is running via CLI.

Return value

bool TRUE if CLI, FALSE otherwise.

1 call to OpcodeCache::isCli()
OpcodeCache::run in src/ReadinessChecker/OpcodeCache.php
Run check.

File

src/ReadinessChecker/OpcodeCache.php, line 30

Class

OpcodeCache
Error if opcode caching is enabled and updates are executed via CLI.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

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