Changeset View
Changeset View
Standalone View
Standalone View
src/land/engine/ArcanistLandEngine.php
Show First 20 Lines • Show All 1,541 Lines • ▼ Show 20 Lines | if ($is_pick) { | ||||
unset($sets[$key]); | unset($sets[$key]); | ||||
} | } | ||||
} | } | ||||
return $sets; | return $sets; | ||||
} | } | ||||
final protected function newPassthru($pattern /* , ... */) { | final protected function newPassthruCommand($pattern /* , ... */) { | ||||
$workflow = $this->getWorkflow(); | $workflow = $this->getWorkflow(); | ||||
$argv = func_get_args(); | $argv = func_get_args(); | ||||
$api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
$passthru = call_user_func_array( | $passthru = call_user_func_array( | ||||
array($api, 'newPassthru'), | array($api, 'newPassthru'), | ||||
$argv); | $argv); | ||||
$command = $workflow->newCommand($passthru) | $command = $workflow->newCommand($passthru) | ||||
->setResolveOnError(true); | ->setResolveOnError(true); | ||||
return $command; | |||||
} | |||||
final protected function newPassthru($pattern /* , ... */) { | |||||
$argv = func_get_args(); | |||||
$command = call_user_func_array( | |||||
array($this, 'newPassthruCommand'), | |||||
$argv); | |||||
return $command->execute(); | return $command->execute(); | ||||
} | } | ||||
} | } |