8000 Merge remote-tracking branch 'upstream/4.3' into 4.3 · symfony/symfony-docs@ae1a849 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae1a849

Browse files
committed
Merge remote-tracking branch 'upstream/4.3' into 4.3
* upstream/4.3: add missing blank line missing blank line Add caution about combining excluded_http_codes with passthru_level fix wrong class import Useless code in an example Update Doc : Symfony 4.3 - Swift Mailer Fixed the link to the ErrorRenderer component page Fix the chain adapter exemple on object creation [Translation] Mention that you don't have to clear the cache for translation files Add caution about combining excluded_404s with passthru_level
2 parents 7db9d2e + 7efb02d commit ae1a849

File tree

5 files changed

+26
-14
lines changed

5 files changed

+26
-14
lines changed

components/cache/adapters/chain_adapter.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ given adapters. This exposes a simple and efficient method for creating a layere
1515
The ChainAdapter must be provided an array of adapters and optionally a maximum cache
1616
lifetime as its constructor arguments::
1717

18-
use Symfony\Component\Cache\Adapter\ApcuAdapter;
19-
20-
$cache = new ChainAdapter([
18+
use Symfony\Component\Cache\Adapter\ChainAdapter;
2119

20+
$cache = new ChainAdapter(
2221
// The ordered list of adapters used to fetch cached items
2322
array $adapters,
2423

2524
// The max lifetime of items propagated from lower adapters to upper ones
2625
$maxLifetime = 0
27-
]);
26+
);
2827

2928
.. note::
3029

components/yaml.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ Similarly you can use ``DUMP_EXCEPTION_ON_INVALID_TYPE`` when dumping::
289289
$data = new \stdClass(); // by default objects are invalid.
290290
Yaml::dump($data, 2, 4, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
291291

292-
echo $yaml; // { foo: bar }
293-
294292
Date Handling
295293
~~~~~~~~~~~~~
296294

logging/monolog_exclude_http_codes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,11 @@ logging these HTTP codes based on the MonologBundle configuration:
5959
],
6060
],
6161
]);
62+
63+
.. caution::
64+
65+
Combining ``excluded_http_codes`` with a ``passthru_level`` lower than
66+
``error`` (i.e. ``debug``, ``info``, ``notice`` or ``warning``) will not
67+
actually exclude log messages for those HTTP codes because they are logged
68+
with level of ``error`` or higher and ``passthru_level`` takes precedence
69+
over the HTTP codes being listed in ``excluded_http_codes``.

logging/monolog_regex_based_excludes.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,13 @@ configuration:
6666
],
6767
],
6868
]);
69+
70+
71+
.. caution::
72+
73+
Combining ``excluded_404s`` with a ``passthru_level`` lower than
74+
``error`` (i.e. ``debug``, ``info``, ``notice`` or ``warning``) will not
75+
actually exclude log messages for the URL(s) listed in ``excluded_404s``
76+
because they are logged with level of ``error`` or higher and
77+
``passthru_level`` takes precedence over the URLs being listed in
78+
``excluded_404s``.

translation.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,12 @@ For more options, see :ref:`component-translator-message-catalogs`.
366366
:class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface.
367367
See the :ref:`dic-tags-translation-loader` tag for more information.
368368

369-
.. caution::
370-
371-
Each time you create a *new* translation resource (or install a bundle
372-
that includes a translation resource), be sure to clear your cache so
373-
that Symfony can discover the new translation resources:
374-
375-
.. code-block:: terminal
369+
.. versionadded:: 4.3
376370

377-
$ php bin/console cache:clear
371+
Starting from Symfony 4.3, when you create a new translation file (or
372+
install a bundle that includes translation files), you don't have to clear
373+
the cache with the command ``php bin/console cache:clear`` as you had to do
374+
in previous Symfony versions.
378375

379376
Handling the User's Locale
380377
--------------------------

0 commit comments

Comments
 (0)
0