Example #1
0
 /**
  * Sets up the callable given a controller.
  * DEPRECATED this is maintained for BC.
  *
  * @param callable $controller
  * @param string   $command
  * @param Run      $run
  *
  * @return array|false
  */
 private function setUpControllerDeprecated($controller, $command, Run $run)
 {
     $command = $command;
     if (!method_exists($controller, $command)) {
         $run->setResult(Run::RESULT_FAILED)->writeOutput("{$this->class}->{$command}() does not exist");
         return false;
     }
     return [$controller, $command];
 }