isCli() || !$request->isMethodSafe()) { return static::DENY; } } /** * Indicates whether this is a CLI request. */ protected function isCli() { return PHP_SAPI === 'cli'; } }