رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
استاندارد psr 7
#3
خب مسئله ی منم همینه دیگ، خیلی جاها نمیشه با stream کار کرد ولی psr 7 میگه باید 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);
پاسخ
تشکر شده توسط:


پیام‌های این موضوع
استاندارد psr 7 - n0o0b_sina - 04-05-1394، 04:03 ب.ظ
RE: استاندارد psr 7 - ADMIN - 04-05-1394، 04:43 ب.ظ
RE: استاندارد psr 7 - n0o0b_sina - 04-05-1394، 04:47 ب.ظ



کاربران در حال بازدید این موضوع: 1 مهمان