/** * Returns the file stream to handle the requested path * * @param PathInformationInterface $path The path information * @param string $mode The mode used to open the path * @return FileBufferInterface The file buffer to handle the path */ public function createFileBuffer(PathInformationInterface $path, $mode) { return new StringBuffer($this->createLogString($path->getRepository(), $path->getArgument('limit'), $path->getArgument('skip')), array(), 'r'); }
/** * Returns the file stream to handle the requested path * * @param PathInformationInterface $path The path information * @param string $mode The mode used to open the path * @return FileBufferInterface The file buffer to handle the path */ public function createFileBuffer(PathInformationInterface $path, $mode) { $repo = $path->getRepository(); $buffer = $repo->showCommit($path->getArgument('ref')); return new StringBuffer($buffer, array(), 'r'); }