@@ -30,7 +30,6 @@ The Runtime component abstracts most bootstrapping logic as so-called
3030For instance, the Runtime component allows Symfony's ``public/index.php ``
3131to look like this::
3232
33- <?php
3433 // public/index.php
3534 use App\Kernel;
3635
@@ -120,7 +119,6 @@ Resolvable Arguments
120119
121120The closure returned from the front-controller may have zero or more arguments::
122121
123- <?php
124122 // public/index.php
125123 use Symfony\Component\Console\Input\InputInterface;
126124 use Symfony\Component\Console\Output\OutputInterface;
@@ -167,7 +165,6 @@ Resolvable Applications
167165The application returned by the closure below is a Symfony Kernel. However,
168166a number of different applications are supported::
169167
170- <?php
171168 // public/index.php
172169 use App\Kernel;
173170
@@ -187,7 +184,6 @@ The ``SymfonyRuntime`` can handle these applications:
187184 The Response will be printed by
188185 :class: `Symfony\\ Component\\ Runtime\\ Runner\\ Symfony\\ ResponseRunner `::
189186
190- <?php
191187 // public/index.php
192188 use Symfony\Component\HttpFoundation\Response;
193189
@@ -201,8 +197,6 @@ The ``SymfonyRuntime`` can handle these applications:
201197 To write single command applications. This will use the
202198 :class: `Symfony\\ Component\\ Runtime\\ Runner\\ Symfony\\ ConsoleApplicationRunner `::
203199
204- <?php
205-
206200 use Symfony\Component\Console\Command\Command;
207201 use Symfony\Component\Console\Input\InputInterface;
208202 use Symfony\Component\Console\Output\OutputInterface;
@@ -221,8 +215,6 @@ The ``SymfonyRuntime`` can handle these applications:
221215 Useful with console applications with more than one command. This will use the
222216 :class: `Symfony\\ Component\\ Runtime\\ Runner\\ Symfony\\ ConsoleApplicationRunner `::
223217
224- <?php
225-
226218 use Symfony\Component\Console\Application;
227219 use Symfony\Component\Console\Command\Command;
228220 use Symfony\Component\Console\Input\InputInterface;
@@ -250,7 +242,6 @@ applications:
250242 The ``RunnerInterface `` is a way to use a custom application with the
251243 generic Runtime::
252244
253- <?php
254245 // public/index.php
255246 use Symfony\Component\Runtime\RunnerInterface;
256247
@@ -271,9 +262,7 @@ applications:
271262 Your "application" can also be a ``callable ``. The first callable will return
272263 the "application" and the second callable is the "application" itself::
273264
274- <?php
275265 // public/index.php
276-
277266 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
278267
279268 return function () {
@@ -290,8 +279,6 @@ applications:
290279 If the callable doesn't return anything, the ``SymfonyRuntime `` will assume
291280 everything is fine::
292281
293- <?php
294-
295282 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
296283
297284 return function () {
@@ -304,8 +291,6 @@ Using Options
304291Some behavior of the Runtimes can be modified through runtime options. They
305292can be set using the ``APP_RUNTIME_OPTIONS `` environment variable::
306293
307- <?php
308-
309294 $_SERVER['APP_RUNTIME_OPTIONS'] = [
310295 'project_dir' => '/var/task',
311296 ];
@@ -496,8 +481,6 @@ always using this ``ReactPHPRunner``::
496481
497482The end user will now be able to create front controller like::
498483
499- <?php
500-
501484 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
502485
503486 return function (array $context) {
0 commit comments