@@ -26,7 +26,6 @@ The Runtime component abstracts most bootstrapping logic as so-called
2626For instance, the Runtime component allows Symfony's ``public/index.php ``
2727to look like this::
2828
29- <?php
3029 // public/index.php
3130 use App\Kernel;
3231
@@ -116,7 +115,6 @@ Resolvable Arguments
116115
117116The closure returned from the front-controller may have zero or more arguments::
118117
119- <?php
120118 // public/index.php
121119 use Symfony\Component\Console\Input\InputInterface;
122120 use Symfony\Component\Console\Output\OutputInterface;
@@ -163,7 +161,6 @@ Resolvable Applications
163161The application returned by the closure below is a Symfony Kernel. However,
164162a number of different applications are supported::
165163
166- <?php
167164 // public/index.php
168165 use App\Kernel;
169166
@@ -183,7 +180,6 @@ The ``SymfonyRuntime`` can handle these applications:
183180 The Response will be printed by
184181 :class: `Symfony\\ Component\\ Runtime\\ Runner\\ Symfony\\ ResponseRunner `::
185182
186- <?php
187183 // public/index.php
188184 use Symfony\Component\HttpFoundation\Response;
189185
@@ -197,8 +193,6 @@ The ``SymfonyRuntime`` can handle these applications:
197193 To write single command applications. This will use the
198194 :class: `Symfony\\ Component\\ Runtime\\ Runner\\ Symfony\\ ConsoleApplicationRunner `::
199195
200- <?php
201-
202196 use Symfony\Component\Console\Command\Command;
203197 use Symfony\Component\Console\Input\InputInterface;
204198 use Symfony\Component\Console\Output\OutputInterface;
@@ -217,8 +211,6 @@ The ``SymfonyRuntime`` can handle these applications:
217211 Useful with console applications with more than one command. This will use the
218212 :class: `Symfony\\ Component\\ Runtime\\ Runner\\ Symfony\\ ConsoleApplicationRunner `::
219213
220- <?php
221-
222214 use Symfony\Component\Console\Application;
223215 use Symfony\Component\Console\Command\Command;
224216 use Symfony\Component\Console\Input\InputInterface;
@@ -246,7 +238,6 @@ applications:
246238 The ``RunnerInterface `` is a way to use a custom application with the
247239 generic Runtime::
248240
249- <?php
250241 // public/index.php
251242 use Symfony\Component\Runtime\RunnerInterface;
252243
@@ -267,9 +258,7 @@ applications:
267258 Your "application" can also be a ``callable ``. The first callable will return
268259 the "application" and the second callable is the "application" itself::
269260
270- <?php
271261 // public/index.php
272-
273262 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
274263
275264 return function () {
@@ -286,8 +275,6 @@ applications:
286275 If the callable doesn't return anything, the ``SymfonyRuntime `` will assume
287276 everything is fine::
288277
289- <?php
290-
291278 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
292279
293280 return function () {
@@ -300,8 +287,6 @@ Using Options
300287Some behavior of the Runtimes can be modified through runtime options. They
301288can be set using the ``APP_RUNTIME_OPTIONS `` environment variable::
302289
303- <?php
304-
305290 $_SERVER['APP_RUNTIME_OPTIONS'] = [
306291 'project_dir' => '/var/task',
307292 ];
@@ -482,8 +467,6 @@ always using this ``ReactPHPRunner``::
482467
483468The end user will now be able to create front controller like::
484469
485- <?php
486-
487470 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
488471
489472 return function (array $context) {
0 commit comments