You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/example.html
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -4,29 +4,27 @@
4
4
nav_name: example
5
5
---
6
6
{% block content %}
7
-
<divclass="examples">
8
-
<h2>Creating middlewares</h2>
7
+
<divclass="example">
8
+
<h2>Middlewares</h2>
9
9
<p>Creating a new middleware is generally quite easy. The hardest part is grasping the decorator pattern.</p>
10
10
<p>A decorator is simply an object that wraps around an other object. In this case a middleware is a decorator for <code>HttpKernelInterface</code>. The decorator wraps around a kernel, and exposes the same interface.</p>
11
-
<p>Let's take a look at an <code>Append</code> middleware, that appends a pre-configured string to all response bodies.</p>
11
+
<p>Let's take a look at an <code>PoweredByStack</code> middleware, that adds a `X-Powered-By` header to all responses.</p>
0 commit comments