Skip to content

Commit 9d83393

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: Minor tweaks [Runtime] Document registering your own runtime template
2 parents 382863f + f18da69 commit 9d83393

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

components/runtime.rst

+18
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,23 @@ Use the ``APP_RUNTIME`` environment variable or by specifying the
9797
}
9898
}
9999
100+
If modifying the runtime class isn't enough, you can create your own runtime template:
101+
102+
.. code-block:: json
103+
104+
{
105+
"require": {
106+
"...": "..."
107+
},
108+
"extra": {
109+
"runtime": {
110+
"autoload_template": "resources/runtime/autoload_runtime.template"
111+
}
112+
}
113+
}
114+
115+
Symfony provides a `runtime template file`_ that you can use to create your own.
116+
100117
Using the Runtime
101118
-----------------
102119

@@ -472,3 +489,4 @@ The end user will now be able to create front controller like::
472489
.. _Swoole: https://openswoole.com/
473490
.. _ReactPHP: https://reactphp.org/
474491
.. _`PSR-15`: https://www.php-fig.org/psr/psr-15/
492+
.. _`runtime template file`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Runtime/Internal/autoload_runtime.template

0 commit comments

Comments
 (0)