Skip to content

[Runtime] Add a note for --no-scripts #15439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion components/runtime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ to look like this::
};

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

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

.. caution::

If you use the Composer ``--no-scripts`` option, make sure your Composer version is ``>=2.1.3``
or the special autoload file won't be created.

To make a console application, the bootstrap code would look like::

#!/usr/bin/env php
Expand Down