Skip to content

Commit eb074a0

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Fixed Swiftmailer PHP configuration Backport symfony#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 [Routing] Be consistent in custom route loader doc [Encore] Fix typo
2 parents 8f6a938 + 1ea9fbc commit eb074a0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

frontend/encore/simple-example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Compiling Only a CSS File
322322
.. caution::
323323

324324
Using ``addStyleEntry()`` is supported, but not recommended. A better option
325-
is to use follow the pattern above: use ``addEntry()`` to point to a JavaScript
325+
is to follow the pattern above: use ``addEntry()`` to point to a JavaScript
326326
file, then require the CSS needed from inside of that.
327327

328328
If you want to only compile a CSS file, that's possible via ``addStyleEntry()``:

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`.

routing/custom_route_loader.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ extend or implement any special class, but the called method must return a
139139

140140
.. versionadded:: 4.3
141141

142-
The support of the ``__invoke()`` method to create invokable route loader
143-
services was introduced in Symfony 4.3.
142+
The support of the ``__invoke()`` method to create invokable service route
143+
loaders was introduced in Symfony 4.3.
144144

145145
Creating a custom Loader
146146
------------------------

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)