Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 2,235 Lines • ▼ Show 20 Lines | if ($viewer->isOmnipotent()) { | ||||
| if ($token) { | if ($token) { | ||||
| $client->setConduitToken($token->getToken()); | $client->setConduitToken($token->getToken()); | ||||
| } | } | ||||
| } | } | ||||
| return $client; | return $client; | ||||
| } | } | ||||
| public function newConduitClientForRequest(ConduitAPIRequest $request) { | |||||
| // Figure out whether we're going to handle this request on this device, | |||||
| // or proxy it to another node in the cluster. | |||||
| // If this is a cluster request and we need to proxy, we'll explode here | |||||
| // to prevent infinite recursion. | |||||
| $viewer = $request->getViewer(); | |||||
| $is_cluster_request = $request->getIsClusterRequest(); | |||||
| $client = $this->newConduitClient( | |||||
| $viewer, | |||||
| $is_cluster_request); | |||||
| return $client; | |||||
| } | |||||
| public function getPassthroughEnvironmentalVariables() { | public function getPassthroughEnvironmentalVariables() { | ||||
| $env = $_ENV; | $env = $_ENV; | ||||
| if ($this->isGit()) { | if ($this->isGit()) { | ||||
| // $_ENV does not populate in CLI contexts if "E" is missing from | // $_ENV does not populate in CLI contexts if "E" is missing from | ||||
| // "variables_order" in PHP config. Currently, we do not require this | // "variables_order" in PHP config. Currently, we do not require this | ||||
| // to be configured. Since it may not be, explicitly bring expected Git | // to be configured. Since it may not be, explicitly bring expected Git | ||||
| // environmental variables into scope. This list is not exhaustive, but | // environmental variables into scope. This list is not exhaustive, but | ||||
| ▲ Show 20 Lines • Show All 591 Lines • Show Last 20 Lines | |||||