Skip to content

Commit 2d4ba43

Browse files
committed
be keen to newcomers
1 parent 07f0cd4 commit 2d4ba43

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

best_practices/business-logic.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ post URL. Let's create a new ``Slugger`` class inside ``src/Utils/``::
5757
}
5858

5959
If you're using the :ref:`default services.yaml configuration <service-container-services-load-example>`,
60-
this class is auto-registered as a service whose ID is ``App\Utils\Slugger`` (or
61-
simply ``Slugger::class`` if the class is already imported in your code).
60+
this class is auto-registered as a service whose ID is ``App\Utils\Slugger`` (as
61+
an alternative you can use ``Slugger::class``, if the class is already imported
62+
in your code).
6263

6364
.. best-practice::
6465

bundles/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Using the Bundle Extension
4848
--------------------------
4949

5050
Imagine you are creating a new bundle - AcmeSocialBundle - which provides
51-
integration with Twitter, etc. To make your bundle easy to use, you want to
52-
allow users to configure it with some configuration that looks like this:
51+
integration with Twitter. To make your bundle configurable to the user, you
52+
can add some configuration that looks like this:
5353

5454
.. configuration-block::
5555

components/expression_language/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ or by using the second argument of the constructor::
127127
{
128128
public function __construct(CacheItemPoolInterface $parser = null, array $providers = [])
129129
{
130-
// prepends the default provider to let users override it easily
130+
// prepends the default provider to let users override it
131131
array_unshift($providers, new StringExpressionLanguageProvider());
132132

133133
parent::__construct($parser, $providers);

components/http_foundation/sessions.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ store it again::
226226
],
227227
];
228228

229-
So any processing of this might quickly get ugly, even simply adding a token to
230-
the array::
229+
So any processing of this might quickly get ugly, even adding a token to the array::
231230

232231
$tokens = $session->get('tokens');
233232
$tokens['c'] = $value;

doctrine/associations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ you.
398398
.. image:: /_images/doctrine/mapping_relations_proxy.png
399399
:align: center
400400

401-
What's important is the fact that you have easy access to the product's related
401+
What's important is the fact that you have access to the product's related
402402
category, but the category data isn't actually retrieved until you ask for
403403
the category (i.e. it's "lazily loaded").
404404

doctrine/dbal.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ How to Use Doctrine DBAL
1313

1414
The `Doctrine`_ Database Abstraction Layer (DBAL) is an abstraction layer that
1515
sits on top of `PDO`_ and offers an intuitive and flexible API for communicating
16-
with the most popular relational databases. In other words, the DBAL library
17-
makes it easy to execute queries and perform other database actions.
16+
with the most popular relational databases. In other words, executing queries and
17+
performing other database actions can be achieved with the DBAL library.
1818

1919
.. tip::
2020

http_cache/esi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,6 @@ The ``render_esi`` helper supports two other useful options:
250250
``ignore_errors``
251251
If set to true, an ``onerror`` attribute will be added to the ESI with a value
252252
of ``continue`` indicating that, in the event of a failure, the gateway cache
253-
will simply remove the ESI tag silently.
253+
will remove the ESI tag silently.
254254

255255
.. _`ESI`: http://www.w3.org/TR/esi-lang

messenger/handler_results.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ buses are central pieces of the application. Read Martin Fowler's
3636
As queries are usually synchronous and expected to be handled once,
3737
getting the result from the handler is a common need.
3838

39-
To make this easy, you can leverage the ``HandleTrait`` in any class that has
40-
a ``$messageBus`` property::
39+
You can leverage the ``HandleTrait`` in any class that has a ``$messageBus``
40+
property::
4141

4242
// src/Action/ListItems.php
4343
namespace App\Action;

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ See :doc:`/security/securing_services`.
619619
Checking to see if a User is Logged In (IS_AUTHENTICATED_FULLY)
620620
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
621621

622-
If you *only* want to check if a user is simply logged in (you don't care about roles),
622+
If you *only* want to check if a user is logged in (you don't care about roles),
623623
you have two options. First, if you've given *every* user ``ROLE_USER``, you can
624624
just check for that role. Otherwise, you can use a special "attribute" in place
625625
of a role::

0 commit comments

Comments
 (0)