/** * @param \TYPO3\Surf\Domain\Model\Application $application * * @return void * * @throws TaskExecutionException */ protected function setRemoteNode(Application $application) { $this->requireApplication(__METHOD__); $nodes = $application->getNodes(); if (count($nodes) < 1) { throw new TaskExecutionException("There is no node is set for application '{$application->getName()}'. Please check your TYPO3/Surf configuration."); } $this->remoteNode = array_shift($nodes); }