public function __construct($options = []) { parent::__construct($options); $encountConfig = []; if (isset($options['encount'])) { $encountConfig = $options['encount']; } $this->config($encountConfig, null, false); }
/** * Constructor * * @param array $options The options for error handling. */ public function __construct($options = []) { // set debug & email $this->debug = Configure::read('debug'); if (!$this->debug) { $this->email = new EmailComponent(new ComponentRegistry()); } // run parent parent::__construct($options); }