Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 8442764

Browse files
committed
Documenting the reason for the MiddlewareController to exist
1 parent 98c6d39 commit 8442764

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Controller/MiddlewareController.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@
2222
use Zend\Stratigility\MiddlewarePipe;
2323

2424
/**
25-
* Note: I'm a terrible person
26-
*
2725
* @internal don't use this in your codebase, or else @ocramius will hunt you down. This is just an internal
2826
* @internal hack to make middleware trigger 'dispatch' events attached to the DispatchableInterface identifier.
27+
*
28+
* Specifically, it will receive a @see MiddlewarePipe, a @see ResponseInterface prototype, and then dispatch
29+
* the pipe whilst still behaving like a normal controller. That is needed for any events attached to
30+
* the @see \Zend\Stdlib\DispatchableInterface identifier to reach their listeners on any attached
31+
* @see \Zend\EventManager\SharedEventManagerInterface
2932
*/
3033
final class MiddlewareController extends AbstractController
3134
{

0 commit comments

Comments
 (0)