public static function connect() { if (!is_object(self::$cnn)) { self::$cnn = new AMQPConnect(Kohana::config('uap.rabbitmq')); } return self::$cnn; }