- ⌂ comand
- Configurations
- Methods
- Static Methods
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
$options for valid values.connect
- 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.
- connect - See
Example
// enable the COMAND auto-loader
require_once('path/to/comand.php');
// get the COMAND singleton instance
$comand = comand::get();