# Question regarding PSR-11 and PSR-15 integration in CakePHP 4.1

**URL:** <https://discourse.cakephp.org/t/question-regarding-psr-11-and-psr-15-integration-in-cakephp-4-1/5379>\
**Category:** Uncategorized\
**Created:** [December 8, 2018, 11:10am UTC](https://discourse.cakephp.org/t/question-regarding-psr-11-and-psr-15-integration-in-cakephp-4-1/5379 "2018-12-08T11:10:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steffenbrand86](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/steffenbrand86/32/1241_2.png) [@steffenbrand86](https://discourse.cakephp.org/u/steffenbrand86)\
**Post date:** [December 8, 2018, 11:10am UTC](https://discourse.cakephp.org/t/question-regarding-psr-11-and-psr-15-integration-in-cakephp-4-1/5379/1 "2018-12-08T11:10:24Z")

</div>

I looked at the Roadmap and saw that CakePHP 4.1 will integrate PSR-11 containers and PSR-15 middleware. This makes me happy, because I think becoming more PSR compliant is the way to stay relevant/attract more users.

Now I wonder what the implementations might look like and where they are being discussed.

Questions regarding PSR-15:

- Will there be a general “middleware pipeline” for all requests/responses running through the application?
- Will there be a way to add middlewares to specific routes and will it replace your current “psr-7 middleware approach” in the router?

Question regarding PSR-11:

- Are you planning to write your own container?
- Or will you just implement the interfaces and let people register containers in the application bootstrapping?
- Will you eventually swap out “$this-\>loadComponent()” for “$this-\>container-\>get()” or will they co-exist?

Regards

Steffen

---

<div class="post-metadata">

**Author:** ![ADmad](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/admad/32/20_2.png) [@ADmad](https://discourse.cakephp.org/u/ADmad)\
**Post date:** [December 12, 2018, 11:59am UTC](https://discourse.cakephp.org/t/question-regarding-psr-11-and-psr-15-integration-in-cakephp-4-1/5379/2 "2018-12-12T11:59:48Z")

</div>

> Questions regarding PSR-15:

We still haven’t discussed the implementation details.

> Question regarding PSR-11:

We will most likely use an existing library instead of writing our own implementation. Usage like `$this->loadComponent()` will almost surely continue to exist.
