Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9127f75

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: Use valid number of backslashes, depending on 1 or 2 ticks
2 parents 6aebae9 + 31c06d6 commit 9127f75

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

components/cache/cache_pools.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Saving Cache Items
115115
~~~~~~~~~~~~~~~~~~
116116

117117
The most common method to save cache items is
118-
``Psr\\Cache\\CacheItemPoolInterface::save``, which stores the
118+
``Psr\Cache\CacheItemPoolInterface::save``, which stores the
119119
item in the cache immediately (it returns ``true`` if the item was saved or
120120
``false`` if some error occurred)::
121121

@@ -126,9 +126,9 @@ item in the cache immediately (it returns ``true`` if the item was saved or
126126

127127
Sometimes you may prefer to not save the objects immediately in order to
128128
increase the application performance. In those cases, use the
129-
``Psr\\Cache\\CacheItemPoolInterface::saveDeferred`` method to mark cache
129+
``Psr\Cache\CacheItemPoolInterface::saveDeferred`` method to mark cache
130130
items as "ready to be persisted" and then call to
131-
``Psr\\Cache\\CacheItemPoolInterface::commit`` method when you are ready
131+
``Psr\Cache\CacheItemPoolInterface::commit`` method when you are ready
132132
to persist them all::
133133

134134
// ...
@@ -149,22 +149,22 @@ Removing Cache Items
149149
~~~~~~~~~~~~~~~~~~~~
150150

151151
Cache Pools include methods to delete a cache item, some of them or all of them.
152-
The most common is ``Psr\\Cache\\CacheItemPoolInterface::deleteItem``,
152+
The most common is ``Psr\Cache\CacheItemPoolInterface::deleteItem``,
153153
which deletes the cache item identified by the given key (it returns ``true``
154154
when the item is successfully deleted or doesn't exist and ``false`` otherwise)::
155155

156156
// ...
157157
$isDeleted = $cache->deleteItem('user_'.$userId);
158158

159-
Use the ``Psr\\Cache\\CacheItemPoolInterface::deleteItems`` method to
159+
Use the ``Psr\Cache\CacheItemPoolInterface::deleteItems`` method to
160160
delete several cache items simultaneously (it returns ``true`` only if all the
161161
items have been deleted, even when any or some of them don't exist)::
162162

163163
// ...
164164
$areDeleted = $cache->deleteItems(['category1', 'category2']);
165165

166166
Finally, to remove all the cache items stored in the pool, use the
167-
``Psr\\Cache\\CacheItemPoolInterface::clear`` method (which returns ``true``
167+
``Psr\Cache\CacheItemPoolInterface::clear`` method (which returns ``true``
168168
when all items are successfully deleted)::
169169

170170
// ...
@@ -205,7 +205,7 @@ Pruning Cache Items
205205
Some cache pools do not include an automated mechanism for pruning expired cache items.
206206
For example, the :ref:`FilesystemAdapter <component-cache-filesystem-adapter>` cache
207207
does not remove expired cache items *until an item is explicitly requested and determined to
208-
be expired*, for example, via a call to ``Psr\\Cache\\CacheItemPoolInterface::getItem``.
208+
be expired*, for example, via a call to ``Psr\Cache\CacheItemPoolInterface::getItem``.
209209
Under certain workloads, this can cause stale cache entries to persist well past their
210210
expiration, resulting in a sizable consumption of wasted disk or memory space from excess,
211211
expired cache items.

components/form.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension
224224

225225
.. versionadded:: 1.30
226226

227-
The ``Twig\\RuntimeLoader\\FactoryRuntimeLoader`` was introduced in Twig 1.30.
227+
The ``Twig\RuntimeLoader\FactoryRuntimeLoader`` was introduced in Twig 1.30.
228228

229229
The exact details of your `Twig Configuration`_ will vary, but the goal is
230230
always to add the :class:`Symfony\\Bridge\\Twig\\Extension\\FormExtension`
@@ -264,7 +264,7 @@ installed:
264264
$ composer require symfony/translation symfony/config
265265
266266
Next, add the :class:`Symfony\\Bridge\\Twig\\Extension\\TranslationExtension`
267-
to your ``Twig\\Environment`` instance::
267+
to your ``Twig\Environment`` instance::
268268

269269
use Symfony\Bridge\Twig\Extension\TranslationExtension;
270270
use Symfony\Component\Form\Forms;

contributing/code/bc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public methods and properties.
9494
.. caution::
9595

9696
Classes, properties and methods that bear the tag ``@internal`` as well as
97-
the classes located in the various ``*\\Tests\\`` namespaces are an
97+
the classes located in the various ``*\Tests\`` namespaces are an
9898
exception to this rule. They are meant for internal use only and should
9999
not be accessed by your own code.
100100

create_framework/separation_of_concerns.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ simple principle: the logic is about creating the Response associated with a
1313
Request.
1414

1515
Let's create our very own namespace for our framework: ``Simplex``. Move the
16-
request handling logic into its own ``Simplex\\Framework`` class::
16+
request handling logic into its own ``Simplex\Framework`` class::
1717

1818
// example.com/src/Simplex/Framework.php
1919
namespace Simplex;

0 commit comments

Comments
 (0)