Skip to content

[Runtime] Init Runtime component #15081

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 5 commits into from
Apr 7, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Denis Brumann <dbrumann@gmail.com>
  • Loading branch information
wouterj and dbrumann committed Apr 7, 2021
commit ef5f04b38529e63c3a2916f64983b9a36a52533c
8 changes: 4 additions & 4 deletions components/runtime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ So how does this front-controller work? At first, the special
the component. This file runs the following logic:

#. It instantiates a :class:`Symfony\\Component\\Runtime\\RuntimeInterface`;
#. The callable (returned in the file) is passed to the Runtime, whose job
#. The callable (returned by ``public/index.php``) is passed to the Runtime, whose job
is to resolve the arguments (in this example: ``array $content``);
#. Then, this callable is called to get the application (``App\Kernel``);
#. At last, the Runtime is used to run the application (i.e. calling
Expand Down Expand Up @@ -107,7 +107,7 @@ Use the ``APP_RUNTIME`` environment variable or by specifying the
Using the Runtime
-----------------

A Runtime is resposible for passing arguments into the closure and run the
A Runtime is responsible for passing arguments into the closure and run the
application returned by the closure. The :class:`Symfony\\Component\\Runtime\\SymfonyRuntime` and
:class:`Symfony\\Component\\Runtime\\GenericRuntime` supports a number of
arguments and different applications that you can use in your
Expand Down Expand Up @@ -245,7 +245,7 @@ The ``GenericRuntime`` and ``SymfonyRuntime`` also support these generic
applications:

:class:`Symfony\\Component\\Runtime\\RunnerInterface`
The ``RuntimeInterface`` is a way to use a custom application with the
The ``RunnerInterface`` is a way to use a custom application with the
generic Runtime::

<?php
Expand Down Expand Up @@ -395,7 +395,7 @@ For instance, imagine you want to create a runtime for `ReactPHP`_:

**What arguments will the end user use?**

For a generic ReactPHP application, there are no special arguments are
For a generic ReactPHP application, no special arguments are
typically required. This means that you can use the
:class:`Symfony\\Component\\Runtime\\GenericRuntime`.

Expand Down