Skip to content

Commit 63e258a

Browse files
committed
minor #21327 [Runtime] Add support for JSON encoded APP_RUNTIME_OPTIONS value (VincentLanglet)
This PR was merged into the 7.4 branch. Discussion ---------- [Runtime] Add support for JSON encoded APP_RUNTIME_OPTIONS value Closes #21323 Commits ------- 26fea4c Add support for JSON encoded APP_RUNTIME_OPTIONS value
2 parents 512e8a0 + 26fea4c commit 63e258a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

components/runtime.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,23 @@ Using Options
302302
~~~~~~~~~~~~~
303303

304304
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::
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+
315322
You can also configure ``extra.runtime`` in ``composer.json``:
316323

317324
.. code-block:: json

0 commit comments

Comments
 (0)