Zend\Diactoros\Stream::rewind PHP Method

rewind() public method

public rewind ( )
    public function rewind()
    {
        return $this->seek(0);
    }

Usage Example

コード例 #1
0
ファイル: Response.php プロジェクト: asylgrp/workbench
 /**
  * Get body for response
  *
  * {@inheritdoc}
  */
 public function getBody()
 {
     $body = new Stream('php://temp', 'wb+');
     $body->write($this->resource->asJson());
     $body->rewind();
     return $body;
 }
All Usage Examples Of Zend\Diactoros\Stream::rewind