Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion components/runtime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,23 @@ Using Options
~~~~~~~~~~~~~

Some behavior of the Runtimes can be modified through runtime options. They
can be set using the ``APP_RUNTIME_OPTIONS`` environment variable::
can be set using the ``APP_RUNTIME_OPTIONS`` environment variable as an array
or a JSON encoded value::

$_SERVER['APP_RUNTIME_OPTIONS'] = [
'project_dir' => '/var/task',
];
// Which is the same than
// $_SERVER['APP_RUNTIME_OPTIONS'] = '{"project_dir":"\/var\/task"}';

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

// ...

.. versionadded:: 7.4

The support for JSON encoded APP_RUNTIME_OPTIONS value was introduced in Symfony 7.4.

You can also configure ``extra.runtime`` in ``composer.json``:

.. code-block:: json
Expand Down