Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/method/ConduitConnectConduitAPIMethod.php
Show All 12 Lines | final class ConduitConnectConduitAPIMethod extends ConduitAPIMethod { | ||||
public function shouldAllowUnguardedWrites() { | public function shouldAllowUnguardedWrites() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Connect a session-based client.'; | return 'Connect a session-based client.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'client' => 'required string', | 'client' => 'required string', | ||||
'clientVersion' => 'required int', | 'clientVersion' => 'required int', | ||||
'clientDescription' => 'optional string', | 'clientDescription' => 'optional string', | ||||
'user' => 'optional string', | 'user' => 'optional string', | ||||
'authToken' => 'optional int', | 'authToken' => 'optional int', | ||||
'authSignature' => 'optional string', | 'authSignature' => 'optional string', | ||||
'host' => 'deprecated', | 'host' => 'deprecated', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'dict<string, any>'; | return 'dict<string, any>'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR-BAD-VERSION' => | 'ERR-BAD-VERSION' => | ||||
'Client/server version mismatch. Upgrade your server or downgrade '. | 'Client/server version mismatch. Upgrade your server or downgrade '. | ||||
'your client.', | 'your client.', | ||||
'NEW-ARC-VERSION' => | 'NEW-ARC-VERSION' => | ||||
'Client/server version mismatch. Upgrade your client.', | 'Client/server version mismatch. Upgrade your client.', | ||||
'ERR-UNKNOWN-CLIENT' => | 'ERR-UNKNOWN-CLIENT' => | ||||
'Client is unknown.', | 'Client is unknown.', | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |