خب مسئله ی منم همینه دیگ، خیلی جاها نمیشه با stream کار کرد ولی psr 7 میگه باید stream باشه
کد رو از psr 7 ضمیمه کردم واضع نوشته stream بده stream بگیر، به نظرتون چه کنیم؟
کد رو از psr 7 ضمیمه کردم واضع نوشته stream بده stream بگیر، به نظرتون چه کنیم؟
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /** * Gets the body of the message. * * @return StreamInterface Returns the body as a stream. */ public function getBody(); /** * Return an instance with the specified message body. * * The body MUST be a StreamInterface object. * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return a new instance that has the * new body stream. * * @param StreamInterface $body Body. * @return self * @throws InvalidArgumentException When the body is not valid. */ public function withBody(StreamInterface $body ); |