Skip to content

Commit 1ea9fbc

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: Fixed Swiftmailer PHP configuration Backport #11984 to 3.4 branch add $context argument to supportsNormalization() [Security] Better explain what happens when multiple roles are passed [Security] Fixed a minor RST syntax issue
2 parents 5bd6101 + fcca521 commit 1ea9fbc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

reference/configuration/swiftmailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ alternatives based on the :ref:`service binding <services-binding>` feature:
388388
->setPublic(true)
389389
->setBindings([
390390
// this injects the second mailer when this service type-hints constructor arguments with \Swift_Mailer
391-
\Swift_Mailer => '@swiftmailer.mailer.second_mailer',
391+
\Swift_Mailer::class => '@swiftmailer.mailer.second_mailer',
392392
// this injects the second mailer when this service has a constructor argument called $specialMailer
393393
'$specialMailer' => '@swiftmailer.mailer.second_mailer',
394394
])

reference/twig_reference.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ is_granted
175175

176176
Returns ``true`` if the current user has the given role. If several roles are
177177
passed in an array, ``true`` is returned if the user has at least one of
178-
them.
178+
them or all of them, depending on the
179+
:ref:`Access Decision Manager strategy <security-access-control-enforcement-options>`.
179180

180181
Optionally, an object can be passed to be used by the voter. More information
181182
can be found in :ref:`security-template`.

security.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,6 @@ Frequently Asked Questions
959959
the log message:
960960

961961
**Cannot refresh token because user has changed**
962-
963962
If you see this, there are two possible causes. First, there may be a problem
964963
loading your User from the session. See :ref:`user_session_refresh`. Second,
965964
if certain user information was changed in the database since the last page

serializer/custom_normalizer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
4747
return $data;
4848
}
4949

50-
public function supportsNormalization($data, $format = null)
50+
public function supportsNormalization($data, $format = null, array $context = [])
5151
{
5252
return $data instanceof Topic;
5353
}

0 commit comments

Comments
 (0)