Skip to content

Commit dfbc4e0

Browse files
committed
minor #17971 [Runtime] Document registering your own runtime template (theofidry)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Runtime] Document registering your own runtime template <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 6ecffc3 [Runtime] Document registering your own runtime template
2 parents da99ac7 + 6ecffc3 commit dfbc4e0

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)