Комментарии 10
Автор, у вас русский язык родной? Попробуйте перечитать то, что вы разместили.
Почему изобретают велосипед? Почему не использовать Request и Response из пакета Symfony http-foundation?
В данном случае свое родное решение будет намного эффективнее и легче. CodeIgniter не будет идти по стопам Laravel и задействовать компоненты Symfony.
Вообще-то закономернее вопрос про PSR-7. Заходя в статью, был уверен, что именно об этом здесь прочту. Ан нет, свой велосипед. В 2016 году.
Вот ответ на этот вопрос самого Lonnie Ezell
There was a lot of discussion among the Council about whether to use that or another HTTP solution (like Zend's new PSR7 compatible one). In Symfony's case, the sheer size of HTTP Foundation was a part of it. And when you pick that collection, it's not just the Request/Response stuff you're bringing it, it's quite a bit more.
In the end, we decided it didn't fit the goals set out for CodeIgniter. There are plenty of other frameworks that do us it, though, and to fine effect.
Зарегистрируйтесь на Хабре, чтобы оставить комментарий
Requests и Responses в CodeIgniter 4