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
302
302
~~~~~~~~~~~~~
303
303
304
304
Some 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::
306
307
307
308
$_SERVER['APP_RUNTIME_OPTIONS'] = [
308
309
'project_dir' => '/var/task',
309
310
];
311
+ // Which is the same than
312
+ // $_SERVER['APP_RUNTIME_OPTIONS'] = '{"project_dir":"\/var\/task"}';
310
313
311
314
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
312
315
313
316
// ...
314
317
318
+ .. versionadded :: 7.4
319
+
320
+ The support for JSON encoded APP_RUNTIME_OPTIONS value was introduced in Symfony 7.4.
321
+
315
322
You can also configure ``extra.runtime `` in ``composer.json ``:
316
323
317
324
.. code-block :: json
You can’t perform that action at this time.
0 commit comments