+1 Anton .. exactly!

Also, sorry can we continue the thread in the other post 
<https://groups.google.com/forum/#!topic/php-fig/ACz2cd0dZWc>.

On Tuesday, November 12, 2019 at 12:16:42 AM UTC+1, Anton Fedonjuk wrote:
>
> It's shortes and guarantees full support PSR-7, PSR-17: 
> setHttpFactory(HttpFactoryInterface $factory);
> getHttpFactory(): HttpFactoryInterface;
>
> now:
> setRequestFactory(RequestFactoryInterface $factory);
> getRequestFactory(): RequestFactoryInterface;
> ...
> setUriFactory(UriFactoryInterface $factory);
> getUriFactory(): UriFactoryInterface;
>
> вторник, 12 ноября 2019 г., 2:01:44 UTC+3 пользователь Alexander Makarow 
> написал:
>>
>> What would be the benefit having it? 
>>
>> вт, 12 нояб. 2019 г., 00:28 Daniyal Hamid <daniya...@gmail.com>:
>>
>>> Hi,
>>>
>>> I was wondering if it would be a good idea to create an 
>>> HttpFactoryInterface class that basically is an amalgamation of all PSR-17 
>>> interfaces, something like:
>>>
>>> ```
>>> interface HttpFactoryInterface extends 
>>>     RequestFactoryInterface, 
>>>     ResponseFactoryInterface, 
>>>     ServerRequestFactoryInterface, 
>>>     StreamFactoryInterface, 
>>>     UploadedFileFactoryInterface, 
>>>     UriFactoryInterface 
>>> {
>>> }
>>> ```
>>>
>>> Guzzle <https://github.com/guzzle/psr7/blob/master/src/HttpFactory.php> 
>>> and Nyholm 
>>> <https://github.com/Nyholm/psr7/blob/master/src/Factory/Psr17Factory.php> 
>>> already have HttpFactories as such so maybe it's a good idea to add such an 
>>> interface?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "PHP Framework Interoperability Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to php...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/php-fig/d1087758-ceac-4b9a-a1e2-107553d9c18c%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/php-fig/d1087758-ceac-4b9a-a1e2-107553d9c18c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/aeb82529-3bdd-4f19-a31f-d1bb73072a0f%40googlegroups.com.

Reply via email to