protected function _init() { parent::_init(); $config = $this->_config + array('headers' => array('Host')); unset($config['type']); $this->connection = $this->_instance('service', $config); }
protected function _init() { parent::_init(); $this->_handlers += array( 'integer' => function($v) { return (integer) $v; }, 'float' => function($v) { return (float) $v; }, 'boolean' => function($v) { return (boolean) $v; } ); }