webCOMAND

comand::__construct()

The comand constructor is a private method, so it can not be called directly.  Instead, use comand::get() to get the COMAND singleton instance.

Prototype

comand __construct(array $options = [])

Parameters

  • options - Optional associative array of configuration options to override defaults. The top-level keys correspond to the connect and discover methods. Keys that match those method names may be used to override their default options.
    • connect - See connect $options for valid values.
    • discover - See discover $options for valid values.
    • log_level - Log event types at or more critical than EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, VERBOSE, DEBUG. Default is INFO.

Example

// enable the COMAND auto-loader
require_once('path/to/comand.php');

// get the COMAND singleton instance
$comand = comand::get();

Related

comand::get()