File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -302,16 +302,23 @@ Using Options
302302~~~~~~~~~~~~~
303303
304304Some behavior of the Runtimes can be modified through runtime options. They
305- can be set using the ``APP_RUNTIME_OPTIONS `` environment variable::
305+ can be set using the ``APP_RUNTIME_OPTIONS `` environment variable as an array
306+ or a JSON encoded value::
306307
307308 $_SERVER['APP_RUNTIME_OPTIONS'] = [
308309 'project_dir' => '/var/task',
309310 ];
311+ // Which is the same than
312+ // $_SERVER['APP_RUNTIME_OPTIONS'] = '{"project_dir":"\/var\/task"}';
310313
311314 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
312315
313316 // ...
314317
318+ .. versionadded :: 7.4
319+
320+ The support for JSON encoded APP_RUNTIME_OPTIONS value was introduced in Symfony 7.4.
321+
315322You can also configure ``extra.runtime `` in ``composer.json ``:
316323
317324.. code-block :: json
You can’t perform that action at this time.
0 commit comments