Skip to content

Commit 7a290e7

Browse files
committed
Merge branch '5.2' into 5.3
* 5.2: [Migration guide] Change Strangler App to Strangler Fig App [HttpClient] Import ServerSentEvent class
2 parents 951f382 + 9ad5fd9 commit 7a290e7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

http_client.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,8 @@ Symfony's HTTP client provides an EventSource implementation to consume these
12701270
server-sent events. Use the :class:`Symfony\\Component\\HttpClient\\EventSourceHttpClient`
12711271
to wrap your HTTP client, open a connection to a server that responds with a
12721272
``text/event-stream`` content type and consume the stream as follows::
1273-
1273+
1274+
use Symfony\Component\HttpClient\Chunk\ServerSentEvent;
12741275
use Symfony\Component\HttpClient\EventSourceHttpClient;
12751276

12761277
// the second optional argument is the reconnection time in seconds (default = 10)

migration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Migrating an Existing Application to Symfony
77
When you have an existing application that was not built with Symfony,
88
you might want to move over parts of that application without rewriting
99
the existing logic completely. For those cases there is a pattern called
10-
`Strangler Application`_. The basic idea of this pattern is to create a
10+
`Strangler Fig Application`_. The basic idea of this pattern is to create a
1111
new application that gradually takes over functionality from an existing
1212
application. This migration approach can be implemented with Symfony in
1313
various ways and has some benefits over a rewrite such as being able
@@ -464,7 +464,7 @@ chance to use Symfony's event lifecycle. For instance, this allows you to
464464
transition the authentication and authorization of the legacy application over
465465
to the Symfony application using the Security component and its firewalls.
466466

467-
.. _`Strangler Application`: https://martinfowler.com/bliki/StranglerFigApplication.html
467+
.. _`Strangler Fig Application`: https://martinfowler.com/bliki/StranglerFigApplication.html
468468
.. _`autoload`: https://getcomposer.org/doc/04-schema.md#autoload
469469
.. _`Modernizing with Symfony`: https://youtu.be/YzyiZNY9htQ
470470
.. _`Symfony Panther`: https://github.com/symfony/panther

0 commit comments

Comments
 (0)