8000 [Runtime] Init Runtime component by Nyholm · Pull Request #15081 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

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
Next Next commit
Apply suggestions from code review
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
  • Loading branch information
2 people authored and wouterj committed Apr 7, 2021
commit 06414b72271a50303eaf138a8bc7c50b4ab0fdc2
14 changes: 6 additions & 8 deletions components/runtime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Selecting Runtimes
The default Runtime is :class:`Symfony\\Component\\Runtime\\SymfonyRuntime`, it
works excellent on most applications running with a webserver like Nginx and Apache,
and PHP-FPM. You may change Runtime to :class:`Symfony\\Component\\Runtime\\GenericRuntime`
or a custom Runtime for Swoole or Aws Lambda. This can be done by specifying the
or a custom Runtime for Swoole or AWS Lambda. This can be done by specifying the
Runtime class in the ``APP_RUNTIME`` environment variable or to specify the
``extra.runtime.class`` in ``composer.json``.

Expand All @@ -82,8 +82,8 @@ Runtime class in the ``APP_RUNTIME`` environment variable or to specify the
}
}

Using SymfonyRuntime
--------------------
Using the SymfonyRuntime
------------------------

The :class:`Symfony\\Component\\Runtime\\RuntimeInterface` has two methods. One
to get an instance of :class:`Symfony\\Component\\Runtime\\ResolverInterface`
Expand Down Expand Up @@ -309,8 +309,8 @@ The second way to pass an option to ``SymfonyRuntime::__construct()`` is to use
The environment variable ``APP_DEBUG`` has special support to easily
turn on and off debugging.

Creating Your Own Runtime
-------------------------
Create Your Own Runtime
-----------------------

This is an advanced topic that describes the internals of the Runtime component.

Expand All @@ -319,7 +319,7 @@ could be versioned as a part of a normal package. If the application author deci
to use this component, the package maintainer of the Runtime class will have more
control and can fix bugs and add features.

-- note::
.. note::

Before Symfony 5.3, the boostrap logic was part of a Flex recipe. Since recipes
are rarely updated by users, bug patches would rarely be installed.
Expand Down Expand Up @@ -413,5 +413,3 @@ The end user will now be able to create front controller like::
return function (array $context) {
return new Psr15Application();
};


0