/** * get binary data * * @throws \RuntimeException * @throws \Symfony\Component\Process\Exception\LogicException * @throws \Symfony\Component\Process\Exception\InvalidArgumentException * @throws \Symfony\Component\Process\Exception\RuntimeException * @return string */ public function getBinaryData() { $cmd = CatFileCommand::getInstance($this->getRepository())->content($this->getSubject(), $this->ref); return $this->getCaller()->execute($cmd)->getRawOutput(); }
/** * output a node raw content * * @param \GitElephant\Objects\Object $obj The Object of type BLOB * @param \GitElephant\Objects\TreeishInterface|string $treeish A treeish object * * @throws \RuntimeException * @throws \Symfony\Component\Process\Exception\LogicException * @throws \Symfony\Component\Process\Exception\InvalidArgumentException * @throws \Symfony\Component\Process\Exception\RuntimeException * @return string */ public function outputRawContent(Object $obj, $treeish) { $command = CatFileCommand::getInstance($this)->content($obj, $treeish); return $this->caller->execute($command)->getRawOutput(); }