Skip to content

Commit 77c5dc3

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [Runtime] Add a note for --no-scripts
2 parents f636af0 + e68d5be commit 77c5dc3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/runtime.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ to look like this::
4141
};
4242

4343
So how does this front-controller work? At first, the special
44-
``autoload_runtime.php`` is automatically created by the Composer plugin in
44+
``autoload_runtime.php`` file is automatically created by the Composer plugin in
4545
the component. This file runs the following logic:
4646

4747
#. It instantiates a :class:`Symfony\\Component\\Runtime\\RuntimeInterface`;
@@ -51,6 +51,11 @@ the component. This file runs the following logic:
5151
#. At last, the Runtime is used to run the application (i.e. calling
5252
``$kernel->handle(Request::createFromGlobals())->send()``).
5353

54+
.. caution::
55+
56+
If you use the Composer ``--no-scripts`` option, make sure your Composer version
57+
is ``>=2.1.3``; otherwise the ``autoload_runtime.php`` file won't be created.
58+
5459
To make a console application, the bootstrap code would look like::
5560

5661
#!/usr/bin/env php

0 commit comments

Comments
 (0)