Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/protocol/ConduitAPIRequest.php
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | if (!$this->user) { | ||||
| pht( | pht( | ||||
| 'You can not access the user inside the implementation of a Conduit '. | 'You can not access the user inside the implementation of a Conduit '. | ||||
| 'method which does not require authentication (as per %s).', | 'method which does not require authentication (as per %s).', | ||||
| 'shouldRequireAuthentication()')); | 'shouldRequireAuthentication()')); | ||||
| } | } | ||||
| return $this->user; | return $this->user; | ||||
| } | } | ||||
| public function getViewer() { | |||||
| return $this->getUser(); | |||||
| } | |||||
| public function setOAuthToken( | public function setOAuthToken( | ||||
| PhabricatorOAuthServerAccessToken $oauth_token) { | PhabricatorOAuthServerAccessToken $oauth_token) { | ||||
| $this->oauthToken = $oauth_token; | $this->oauthToken = $oauth_token; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getOAuthToken() { | public function getOAuthToken() { | ||||
| return $this->oauthToken; | return $this->oauthToken; | ||||
| Show All 21 Lines | |||||