We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4249f7a commit 2f744cbCopy full SHA for 2f744cb
source/index.html
@@ -74,4 +74,21 @@ <h2>Example</h2>
74
$response = $app->handle($request)->send();
75
$app->terminate($request, $response);</code></pre>
76
</div>
77
+
78
+<hr>
79
80
+<div class="middleware">
81
+ <h2>Your own middleware</h2>
82
+ <p>
83
+ A stack middleware is just an object that follows these conventions:
84
+ </p>
85
+ <ul>
86
+ <li>Implement the <code>HttpKernelInterface</code></li>
87
+ <li>Take the decorated app as the first constructor argument</li>
88
+ <li>Decorate the handle call, delegate to the decorated app</li>
89
+ </ul>
90
91
+ Yes, leveraging the HTTP abstraction is that easy!
92
93
+</div>
94
{% endblock %}
0 commit comments