Skip to content

Commit 6ecffc3

Browse files
theofidryjaviereguiluz
authored andcommitted
[Runtime] Document registering your own runtime template
1 parent d1522a7 commit 6ecffc3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

components/runtime.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,26 @@ Use the ``APP_RUNTIME`` environment variable or by specifying the
101101
}
102102
}
103103
104+
If modifying the runtime class is not enough, you can always create your own runtime
105+
template:
106+
107+
.. code-block:: json
108+
109+
{
110+
"require": {
111+
"...": "..."
112+
},
113+
"extra": {
114+
"runtime": {
115+
"autoload_template": "resources/runtime/autoload_runtime.template"
116+
}
117+
}
118+
}
119+
120+
If you want a reference, the The Symfony's runtime can be found at
121+
<a href="https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/Runtime/Internal/autoload_runtime.template" class="reference external" title="Symfony autoload_runtime.template" rel="external noopener noreferrer" target="_blank">src/Symfony/Component/Runtime/Internal/autoload_runtime.template()</a>.
122+
123+
104124
Using the Runtime
105125
-----------------
106126

0 commit comments

Comments
 (0)