Exemplo n.º 1
0
 private function getSprintDataFactory(Sprint $sprint)
 {
     $tasks = $this->phabricatorAPI->queryTasksByProject($sprint->phid);
     $taskIDs = array_map(function ($task) {
         return $task['id'];
     }, $tasks);
     $transactionLoader = new TransactionLoader(new SettingsAwareTransactionFilter($sprint->project->workboard_mode), $this->phabricatorAPI);
     return new SprintDataFactory($sprint, $tasks, $transactionLoader->load($taskIDs), $this->phabricatorAPI);
 }
Exemplo n.º 2
0
 private function fetchSnapshotData(array $tasks)
 {
     $taskIDs = array_map(function ($task) {
         return $task['id'];
     }, $tasks);
     $transactionLoader = new TransactionLoader(new TransactionFilter(), App::make('phabricator'));
     return ['tasks' => $tasks, 'transactions' => $transactionLoader->load($taskIDs)];
 }