class CliBypass implements Bypass (View source)

Allows a bypass when the request has been run in CLI mode

Methods

public
bool
checkRequestForBypass(HTTPRequest $request)

Returns true if the current process is running in CLI mode

Details

bool checkRequestForBypass(HTTPRequest $request)

Returns true if the current process is running in CLI mode

Parameters

HTTPRequest $request

Return Value

bool

True if we can bypass, False if the confirmation is required