You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commerce/storefront/extend_storefront.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ It takes the following parameters:
89
89
## Generate custom product preview path
90
90
91
91
By default, the `ProductRenderController` controller passes only the product object for rendering.
92
-
You can modify the controller file to make it pass parameters to the [`path`](https://symfony.com/doc/current/reference/twig_reference.html#path) Twig helper function, which is used by the `product_card.html.twig` and `product_card.html.twig`[templates](customize_storefront_layout.md) to generate the user path.
92
+
You can modify the controller file to make it pass parameters to the [`path`]([[= symfony_doc =]]/reference/twig_reference.html#path) Twig helper function, which is used by the `product_card.html.twig` and `product_card.html.twig`[templates](customize_storefront_layout.md) to generate the user path.
93
93
After you modify the controller, it can also pass the following parameters:
94
94
95
95
-`route` - the route, under which product preview is available.
@@ -109,4 +109,4 @@ Refer to the code snippet below and create your own file, for example, `CustomPr
An event listener can also provide validation by using either one of [constraints provided by Symfony](https://symfony.com/doc/current/validation.html#supported-constraints),
107
+
An event listener can also provide validation by using either one of [constraints provided by Symfony]([[= symfony_doc =]]/validation.html#supported-constraints),
Copy file name to clipboardExpand all lines: docs/infrastructure_and_maintenance/cache/http_cache/http_cache_configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ For example, to disable cache for the block, use `$event->getResponse()->setPriv
77
77
78
78
## When to use ESI
79
79
80
-
[Edge Side Includes](https://symfony.com/doc/current/http_cache/esi.html) (ESI) can be used to split out the different parts of a web page into separate fragments that can be freely reused as pieces by reverse proxy.
80
+
[Edge Side Includes]([[= symfony_doc =]]/http_cache/esi.html) (ESI) can be used to split out the different parts of a web page into separate fragments that can be freely reused as pieces by reverse proxy.
81
81
82
82
In practice, with ESI, every sub-request is regenerated from application perspective.
83
83
And while you can tune your system to reduce this, it always causes additional overhead in the following situations:
Copy file name to clipboardExpand all lines: docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Failing to configure reverse proxies correctly may introduce several problems, i
73
73
74
74
### Configure Symfony front controller
75
75
76
-
You need to consider your `TrustedProxy` configuration when you use Symfony [behind a load balancer or a reverse proxy](https://symfony.com/doc/5.1/deployment/proxies.html).
76
+
You need to consider your `TrustedProxy` configuration when you use Symfony [behind a load balancer or a reverse proxy]([[= symfony_doc =]]/deployment/proxies.html).
77
77
78
78
To configure trusted proxies, use [Symfony semantic configuration]([[= symfony_doc =]]/deployment/proxies.html#solution-settrustedproxies) under the `framework.trusted_proxies`[configuration key](configuration.md#configuration-files), for example:
79
79
@@ -84,7 +84,7 @@ framework:
84
84
85
85
!!! caution "Careful when trusting dynamic IP that uses `REMOTE_ADDR` value or similar"
86
86
87
-
On Platform.sh, Varnish doesn't have a static IP, like with [AWS LB](https://symfony.com/doc/5.1/deployment/proxies.html#but-what-if-the-ip-of-my-reverse-proxy-changes-constantly).
87
+
On Platform.sh, Varnish doesn't have a static IP, like with [AWS LB]([[= symfony_doc =]]/deployment/proxies.html#but-what-if-the-ip-of-my-reverse-proxy-changes-constantly).
88
88
For this reason, the `TRUSTED_PROXIES` env variable supports being set to value `REMOTE_ADDR`, which is equal to:
Copy file name to clipboardExpand all lines: docs/infrastructure_and_maintenance/request_lifecycle.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ For an overview of what happens on a reverse proxy like Varnish or Fastly, see [
14
14
When arriving at a web server, the request is filtered by Apache virtual host, Nginx Server Blocks, or equivalent.
15
15
There, requests of static resources are separated from requests to PHP interpreter.
16
16
17
-
As [[= product_name =]] is a Symfony application, the handling of requests starts like in Symfony (see [Symfony and HTTP Fundamentals](https://symfony.com/doc/current/introduction/http_fundamentals.html)).
17
+
As [[= product_name =]] is a Symfony application, the handling of requests starts like in Symfony (see [Symfony and HTTP Fundamentals]([[= symfony_doc =]]/introduction/http_fundamentals.html)).
18
18
19
-
If the HTTP request is to be treated by [[= product_name =]], it goes to the `public/index.php` of the [Symfony Front Controller](https://symfony.com/doc/current/configuration/front_controllers_and_kernel.html#the-front-controller).
19
+
If the HTTP request is to be treated by [[= product_name =]], it goes to the `public/index.php` of the [Symfony Front Controller]([[= symfony_doc =]]/configuration/front_controllers_and_kernel.html#the-front-controller).
20
20
21
-
The front controller transforms the HTTP request into a PHP [`Request` object](https://symfony.com/doc/current/introduction/http_fundamentals.html#symfony-request-object) and passes it to Symfony's Kernel to get a [`Response` object](https://symfony.com/doc/current/introduction/http_fundamentals.html#symfony-response-object) that is transformed and sent back as an HTTP response.
21
+
The front controller transforms the HTTP request into a PHP [`Request` object]([[= symfony_doc =]]/introduction/http_fundamentals.html#symfony-request-object) and passes it to Symfony's Kernel to get a [`Response` object]([[= symfony_doc =]]/introduction/http_fundamentals.html#symfony-response-object) that is transformed and sent back as an HTTP response.
22
22
23
23
The schemas start with a regular `Request` object from a browser that enters Symfony and [[= product_name =]].
24
24
There is no ESI, no REST, and no GraphQL request performed.
@@ -63,7 +63,7 @@ This schema is described below event by event.
63
63
64
64
## Kernel's request event
65
65
66
-
When the request enters the Symfony's kernel (and goes underneath the [`HttpKernel`](https://symfony.com/doc/current/components/http_kernel.html), `http_kernel`), a `kernel.request` event (`KernelEvents::REQUEST`) is dispatched.
66
+
When the request enters the Symfony's kernel (and goes underneath the [`HttpKernel`]([[= symfony_doc =]]/components/http_kernel.html), `http_kernel`), a `kernel.request` event (`KernelEvents::REQUEST`) is dispatched.
67
67
Several listeners are called in decreasing priority.
68
68
69
69
### SiteAccess matching
@@ -97,7 +97,7 @@ The `DefaultRouter` is always added to the collection with top priority (priorit
97
97
#### `DefaultRouter`
98
98
99
99
`DefaultRouter` (`router.default`):
100
-
The `DefaultRouter` tries to match the `semanticPathinfo` against routes, close to [the way pure Symfony does](https://symfony.com/doc/current/routing.html), by extending and using `Symfony\Component\Routing\Router`.
100
+
The `DefaultRouter` tries to match the `semanticPathinfo` against routes, close to [the way pure Symfony does]([[= symfony_doc =]]/routing.html), by extending and using `Symfony\Component\Routing\Router`.
101
101
If a route matches, the controller associated with it is responsible for building a `View` or `Response` object.
102
102
103
103
### `UrlWildcardRouter`
@@ -154,7 +154,7 @@ The `HttpKernel` then dispatches a `kernel.controller_arguments` (`KernelEvents:
154
154
## Controller execution
155
155
156
156
The `HttpKernel` extracts from the request the controller and the arguments to pass to the controller.
157
-
[Argument resolvers](https://symfony.com/doc/5.4/controller/argument_value_resolver.html) work in a way similar to autowiring.
157
+
[Argument resolvers]([[= symfony_doc =]]/controller/argument_value_resolver.html) work in a way similar to autowiring.
158
158
The `HttpKernel` executes the controller with those arguments.
159
159
160
160
As a reminder, the controller and its argument can be:
0 commit comments