Skip to content

Commit a1e7b13

Browse files
committed
minor #15439 [Runtime] Add a note for --no-scripts (fancyweb)
This PR was merged into the 5.3 branch. Discussion ---------- [Runtime] Add a note for --no-scripts Ref composer/composer#9942 I think it's worth documenting :) Commits ------- 53a1829 [Runtime] Add a note for --no-scripts
2 parents f3dc349 + 53a1829 commit a1e7b13

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 is ``>=2.1.3``
57+
or the special autoload 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)