Skip to content

Commit 34f2845

Browse files
committed
Remove the example again
1 parent b6fecff commit 34f2845

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

source/index.html

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,6 @@ <h2>Conventions</h2>
7676
<li>Decorate the handle call, delegate to the decorated app</li>
7777
</ul>
7878

79-
<p>A simple middleware could look like this:</p>
80-
<pre><code class="php">use Symfony\Component\HttpFoundation\Request;
81-
use Symfony\Component\HttpKernel\HttpKernelInterface;
82-
83-
class MyMiddleware implements HttpKernelInterface
84-
{
85-
protected $app;
86-
87-
public function __construct(HttpKernelInterface $app)
88-
{
89-
$this-&gt;app = $app;
90-
}
91-
92-
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
93-
{
94-
$response = $this-&gt;app-&gt;handle($request, $type, $catch);
95-
$response-&gt;setContent($response-&gt;getContent() . "YOLO!");
96-
97-
return $response;
98-
}
99-
}</code></pre>
100-
10179
<p>
10280
Yes, leveraging the HTTP abstraction is that easy!
10381
</p>

0 commit comments

Comments
 (0)