Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite4c5aef

Browse files
committed
Tweaks
1 parent3aba39e commite4c5aef

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎event_dispatcher.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ a "main" request or a "sub request"::
220220
{
221221
public function onKernelRequest(RequestEvent $event)
222222
{
223+
// The isMainRequest() method was introduced in Symfony 5.3.
224+
// In previous versions it was called isMasterRequest()
223225
if (!$event->isMainRequest()) {
224226
// don't do anything if it's not the main request
225227
return;

‎reference/configuration/framework.rst‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,11 +1247,18 @@ only_exceptions
12471247
When this is set to ``true``, the profiler will only be enabled when an
12481248
exception is thrown during the handling of the request.
12491249

1250+
.. _only_master_requests:
1251+
12501252
only_main_requests
12511253
..................
12521254

12531255
**type**: ``boolean`` **default**: ``false``
12541256

1257+
..versionadded::5.3
1258+
1259+
The ``only_main_requests`` option was introduced in Symfony 5.3. In previous
1260+
versions it was called ``only_master_requests``.
1261+
12551262
When this is set to ``true``, the profiler will only be enabled on the main
12561263
requests (and not on the subrequests).
12571264

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp