From 6ecffc36cd27825dc021e17c8b35db04358b56eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 26 Feb 2023 12:38:11 +0100 Subject: [PATCH] [Runtime] Document registering your own runtime template --- components/runtime.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/components/runtime.rst b/components/runtime.rst index c1588bac187..5c07fdad546 100644 --- a/components/runtime.rst +++ b/components/runtime.rst @@ -101,6 +101,26 @@ Use the ``APP_RUNTIME`` environment variable or by specifying the } } +If modifying the runtime class is not enough, you can always create your own runtime +template: + +.. code-block:: json + + { + "require": { + "...": "..." + }, + "extra": { + "runtime": { + "autoload_template": "resources/runtime/autoload_runtime.template" + } + } + } + +If you want a reference, the The Symfony's runtime can be found at +src/Symfony/Component/Runtime/Internal/autoload_runtime.template(). + + Using the Runtime -----------------