Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php
| Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | final class PhabricatorAsanaConfigOptions | ||||
| } | } | ||||
| private function renderContextualProjectDescription( | private function renderContextualProjectDescription( | ||||
| PhabricatorConfigOption $option, | PhabricatorConfigOption $option, | ||||
| AphrontRequest $request) { | AphrontRequest $request) { | ||||
| $viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
| $publishers = id(new PhutilSymbolLoader()) | $publishers = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('DoorkeeperFeedStoryPublisher') | ->setAncestorClass('DoorkeeperFeedStoryPublisher') | ||||
| ->loadObjects(); | ->execute(); | ||||
| $out = array(); | $out = array(); | ||||
| $out[] = pht( | $out[] = pht( | ||||
| 'To specify projects to add tasks to, enter a JSON map with publisher '. | 'To specify projects to add tasks to, enter a JSON map with publisher '. | ||||
| 'class names as keys and a list of project IDs as values. For example, '. | 'class names as keys and a list of project IDs as values. For example, '. | ||||
| 'to put Differential tasks into Asana projects with IDs `123` and '. | 'to put Differential tasks into Asana projects with IDs `123` and '. | ||||
| '`456`, enter:'. | '`456`, enter:'. | ||||
| "\n\n". | "\n\n". | ||||
| Show All 28 Lines | |||||