Re: HttpFactoryInterface maybe? (PSR-17)

2019-11-12 Thread Matthew Weier O'Phinney
On Mon, Nov 11, 2019 at 5:16 PM Anton Fedonjuk wrote: > It's shortes and guarantees full support PSR-7, PSR-17: > setHttpFactory(HttpFactoryInterface $factory); > getHttpFactory(): HttpFactoryInterface; > > now: > setRequestFactory(RequestFactoryInterface $factory); > getRequestFactory(): Request

Re: HttpFactoryInterface maybe? (PSR-17)

2019-11-11 Thread Daniyal Hamid
+1 Anton .. exactly! Also, sorry can we continue the thread in the other post . 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(Htt

Re: HttpFactoryInterface maybe? (PSR-17)

2019-11-11 Thread Anton Fedonjuk
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); g

Re: HttpFactoryInterface maybe? (PSR-17)

2019-11-11 Thread 'Alexander Makarow' via PHP Framework Interoperability Group
What would be the benefit having it? вт, 12 нояб. 2019 г., 00:28 Daniyal Hamid : > 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 ex