File tree Expand file tree Collapse file tree 9 files changed +14
-14
lines changed Expand file tree Collapse file tree 9 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,9 @@ post URL. Let's create a new ``Slugger`` class inside ``src/Utils/``::
57
57
}
58
58
59
59
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).
62
63
63
64
.. best-practice ::
64
65
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ Using the Bundle Extension
48
48
--------------------------
49
49
50
50
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:
53
53
54
54
.. configuration-block ::
55
55
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ or by using the second argument of the constructor::
127
127
{
128
128
public function __construct(CacheItemPoolInterface $parser = null, array $providers = [])
129
129
{
130
- // prepends the default provider to let users override it easily
130
+ // prepends the default provider to let users override it
131
131
array_unshift($providers, new StringExpressionLanguageProvider());
132
132
133
133
parent::__construct($parser, $providers);
Original file line number Diff line number Diff line change @@ -226,8 +226,7 @@ store it again::
226
226
],
227
227
];
228
228
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::
231
230
232
231
$tokens = $session->get('tokens');
233
232
$tokens['c'] = $value;
Original file line number Diff line number Diff line change 398
398
.. image :: /_images/doctrine/mapping_relations_proxy.png
399
399
:align: center
400
400
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
402
402
category, but the category data isn't actually retrieved until you ask for
403
403
the category (i.e. it's "lazily loaded").
404
404
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ How to Use Doctrine DBAL
13
13
14
14
The `Doctrine `_ Database Abstraction Layer (DBAL) is an abstraction layer that
15
15
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 .
18
18
19
19
.. tip ::
20
20
Original file line number Diff line number Diff line change @@ -250,6 +250,6 @@ The ``render_esi`` helper supports two other useful options:
250
250
``ignore_errors ``
251
251
If set to true, an ``onerror `` attribute will be added to the ESI with a value
252
252
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.
254
254
255
255
.. _`ESI` : http://www.w3.org/TR/esi-lang
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ buses are central pieces of the application. Read Martin Fowler's
36
36
As queries are usually synchronous and expected to be handled once,
37
37
getting the result from the handler is a common need.
38
38
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::
41
41
42
42
// src/Action/ListItems.php
43
43
namespace App\Action;
Original file line number Diff line number Diff line change @@ -619,7 +619,7 @@ See :doc:`/security/securing_services`.
619
619
Checking to see if a User is Logged In (IS_AUTHENTICATED_FULLY)
620
620
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
621
621
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),
623
623
you have two options. First, if you've given *every * user ``ROLE_USER ``, you can
624
624
just check for that role. Otherwise, you can use a special "attribute" in place
625
625
of a role::
You can’t perform that action at this time.
0 commit comments