Skip to content

Commit ecab2a2

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Correct spelling & grammar in 4.4 form/ Correct spelling & grammar in 4.4 doctrine/ Correct spelling & grammar in 4.4 create_framework/ Correct spelling & grammar in 4.4 components/expression_language/ Correct spelling & grammar in 4.4 components/dependency_injection/ Correct spelling & grammar in 4.4 components/console/ Correct spelling & grammar in 4.4 components/config/ Correct spelling & grammar in 4.4 bundles/ Correct spelling & grammar in 4.4 workflow.rst Correct spelling & grammar in 4.4 performance.rst Correct spelling & grammar in 4.4 migration.rst Correct spelling & grammar in 4.4 mercure.rst
2 parents 377ef9f + f7fbd6b commit ecab2a2

25 files changed

+38
-40
lines changed

bundles/best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ The ``composer.json`` file should include at least the following metadata:
485485
Consists of the vendor and the short bundle name. If you are releasing the
486486
bundle on your own instead of on behalf of a company, use your personal name
487487
(e.g. ``johnsmith/blog-bundle``). Exclude the vendor name from the bundle
488-
short name and separate each word with an hyphen. For example: AcmeBlogBundle
488+
short name and separate each word with a hyphen. For example: AcmeBlogBundle
489489
is transformed into ``blog-bundle`` and AcmeSocialConnectBundle is
490490
transformed into ``social-connect-bundle``.
491491

bundles/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ bundle in the console using the Yaml format.
331331

332332
As long as your bundle's configuration is located in the standard location
333333
(``YourBundle\DependencyInjection\Configuration``) and does not have
334-
a constructor it will work automatically. If you
334+
a constructor, it will work automatically. If you
335335
have something different, your ``Extension`` class must override the
336336
:method:`Extension::getConfiguration() <Symfony\\Component\\DependencyInjection\\Extension\\Extension::getConfiguration>`
337337
method and return an instance of your ``Configuration``.

bundles/prepend_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ How to Simplify Configuration of Multiple Bundles
88
When building reusable and extensible applications, developers are often
99
faced with a choice: either create a single large bundle or multiple smaller
1010
bundles. Creating a single bundle has the drawback that it's impossible for
11-
users to choose to remove functionality they are not using. Creating multiple
11+
users to remove unused functionality. Creating multiple
1212
bundles has the drawback that configuration becomes more tedious and settings
1313
often need to be repeated for various bundles.
1414

components/config/definition.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Array Nodes
155155
~~~~~~~~~~~
156156

157157
It is possible to add a deeper level to the hierarchy, by adding an array
158-
node. The array node itself, may have a pre-defined set of variable nodes::
158+
node. The array node itself, may have a predefined set of variable nodes::
159159

160160
$rootNode
161161
->children()
@@ -193,7 +193,7 @@ above, it is possible to have multiple connection arrays (containing a ``driver`
193193
``host``, etc.).
194194

195195
Sometimes, to improve the user experience of your application or bundle, you may
196-
allow to use a simple string or numeric value where an array value is required.
196+
allow the use of a simple string or numeric value where an array value is required.
197197
Use the ``castToArray()`` helper to turn those variables into arrays::
198198

199199
->arrayNode('hosts')

components/console/helpers/progressbar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ to display it can be customized::
292292

293293
.. caution::
294294

295-
For performance reasons, Symfony redraws screen every 100ms. If this is too
295+
For performance reasons, Symfony redraws the screen once every 100ms. If this is too
296296
fast or to slow for your application, use the methods
297297
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::minSecondsBetweenRedraws` and
298298
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::maxSecondsBetweenRedraws`::

components/console/helpers/questionhelper.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ option is the default one.
124124
If the user enters an invalid string, an error message is shown and the user
125125
is asked to provide the answer another time, until they enter a valid string
126126
or reach the maximum number of attempts. The default value for the maximum number
127-
of attempts is ``null``, which means infinite number of attempts. You can define
127+
of attempts is ``null``, which means an infinite number of attempts. You can define
128128
your own error message using
129129
:method:`Symfony\\Component\\Console\\Question\\ChoiceQuestion::setErrorMessage`.
130130

@@ -387,7 +387,7 @@ was successful.
387387
You can set the max number of times to ask with the
388388
:method:`Symfony\\Component\\Console\\Question\\Question::setMaxAttempts` method.
389389
If you reach this max number it will use the default value. Using ``null`` means
390-
the amount of attempts is infinite. The user will be asked as long as they provide an
390+
the number of attempts is infinite. The user will be asked as long as they provide an
391391
invalid answer and will only be able to proceed if their input is valid.
392392

393393
.. tip::

components/console/helpers/table.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ The output of this command will be:
147147
| 99921 | Divine Com | Dante Alighieri |
148148
| -58-1 | edy | |
149149
| 0-7 | | |
150-
| (the rest of rows...) |
150+
| (the rest of the rows...) |
151151
+-------+------------+--------------------------------+
152152
153153
The table style can be changed to any built-in styles via
@@ -379,7 +379,7 @@ This outputs:
379379
| 978-0804169127 | Divine Comedy | spans multiple rows |
380380
+----------------+---------------+---------------------+
381381
382-
You can use the ``colspan`` and ``rowspan`` options at the same time which allows
382+
You can use the ``colspan`` and ``rowspan`` options at the same time, which allows
383383
you to create any table layout you may wish.
384384

385385
.. _console-modify-rendered-tables:

components/console/single_command_tool.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ Building a single Command Application
55
=====================================
66

77
When building a command line tool, you may not need to provide several commands.
8-
In such case, having to pass the command name each time is tedious.
9-
10-
Fortunately, it is possible to remove this need by declaring a single command
11-
application::
8+
In such a case, having to pass the command name each time is tedious. Fortunately,
9+
it is possible to remove this need by declaring a single command application::
1210

1311
#!/usr/bin/env php
1412
<?php

components/dependency_injection/compilation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ methods described in :doc:`/service_container/definitions`.
358358
method call if some required service is not available.
359359

360360
A common use-case of compiler passes is to search for all service definitions
361-
that have a certain tag in order to process dynamically plug each into some
362-
other service. See the section on :ref:`service tags <service-container-compiler-pass-tags>`
361+
that have a certain tag, in order to dynamically plug each one into other services.
362+
See the section on :ref:`service tags <service-container-compiler-pass-tags>`
363363
for an example.
364364

365365
.. _components-di-separate-compiler-passes:

components/dependency_injection/workflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ container exists. The kernel has a debug setting and if this is false,
2525
the cached version is used if it exists. If debug is true then the kernel
2626
:doc:`checks to see if configuration is fresh </components/config/caching>`
2727
and if it is, the cached version of the container is used. If not then the
28-
container is built from the application-level configuration and the bundles's
28+
container is built from the application-level configuration and the bundles'
2929
extension configuration.
3030

3131
Read :ref:`Dumping the Configuration for Performance <components-dependency-injection-dumping>`

components/expression_language/ast.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Dumping and Manipulating the AST of Expressions
66
===============================================
77

8-
Manipulating or inspecting the expressions created with the ExpressionLanguage
9-
component is difficult because they are plain strings. A better approach is to
8+
It’s difficult to manipulate or inspect the expressions created with the ExpressionLanguage
9+
component, because the expressions are plain strings. A better approach is to
1010
turn those expressions into an AST. In computer science, `AST`_ (*Abstract
1111
Syntax Tree*) is *"a tree representation of the structure of source code written
1212
in a programming language"*. In Symfony, a ExpressionLanguage AST is a set of

components/expression_language/caching.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The ``evaluate()`` method needs to loop through the "nodes" (pieces of an
2525
expression saved in the ``ParsedExpression``) and evaluate them on the fly.
2626

2727
To save time, the ``ExpressionLanguage`` caches the ``ParsedExpression`` so
28-
it can skip the tokenize and parse steps with duplicate expressions. The
28+
it can skip the tokenization and parsing steps with duplicate expressions. The
2929
caching is done by a PSR-6 `CacheItemPoolInterface`_ instance (by default, it
3030
uses an :class:`Symfony\\Component\\Cache\\Adapter\\ArrayAdapter`). You can
3131
customize this by creating a custom cache pool or using one of the available

components/expression_language/syntax.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Comparison Operators
191191

192192
$expressionLanguage->evaluate('not ("foo" matches "/bar/")'); // returns true
193193

194-
You must use parenthesis because the unary operator ``not`` has precedence
194+
You must use parentheses because the unary operator ``not`` has precedence
195195
over the binary operator ``matches``.
196196

197197
Examples::

create_framework/front_controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ its sub-directories (only if needed -- see above tip).
127127

128128
.. tip::
129129

130-
You don't even need to setup a web server to test the code. Instead,
130+
You don't even need to set up a web server to test the code. Instead,
131131
replace the ``$request = Request::createFromGlobals();`` call to something
132132
like ``$request = Request::create('/hello?name=Fabien');`` where the
133133
argument is the URL path you want to simulate.

doctrine/associations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ config.
357357
*exactly* like an array, but has some added flexibility. Just imagine that
358358
it is an ``array`` and you'll be in good shape.
359359

360-
Your database is setup! Now, run the migrations like normal:
360+
Your database is set up! Now, run the migrations like normal:
361361

362362
.. code-block:: terminal
363363

doctrine/dbal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Registering custom Mapping Types in the SchemaTool
118118

119119
The SchemaTool is used to inspect the database to compare the schema. To
120120
achieve this task, it needs to know which mapping type needs to be used
121-
for each database types. Registering new ones can be done through the configuration.
121+
for each database type. Registering new ones can be done through the configuration.
122122

123123
Now, map the ENUM type (not supported by DBAL by default) to the ``string``
124124
mapping type:

doctrine/registration_form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ form you must:
1414
#. :doc:`Create a form </forms>` to ask for the registration information (you can
1515
generate this with the ``make:registration-form`` command provided by the `MakerBundle`_);
1616
#. Create :doc:`a controller </controller>` to :ref:`process the form <processing-forms>`;
17-
#. :ref:`Protect some parts of your application <security-access-control>` so
17+
#. :ref:`Protect some parts of your application <security-access-control>` so that
1818
only registered users can access to them.
1919

2020
.. _`MakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html

doctrine/resolve_target_entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
How to Define Relationships with Abstract Classes and Interfaces
66
================================================================
77

8-
One of the goals of bundles is to create discreet bundles of functionality
8+
One of the goals of bundles is to create discrete bundles of functionality
99
that do not have many (if any) dependencies, allowing you to use that
1010
functionality in other applications without including unnecessary items.
1111

doctrine/reverse_engineering.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ How to Generate Entities from an Existing Database
55
==================================================
66

77
When starting work on a brand new project that uses a database, two different
8-
situations comes naturally. In most cases, the database model is designed
8+
situations can occur. In most cases, the database model is designed
99
and built from scratch. Sometimes, however, you'll start with an existing and
1010
probably unchangeable database model. Fortunately, Doctrine comes with a bunch
1111
of tools to help generate model classes from your existing database.
@@ -47,7 +47,7 @@ to a post record thanks to a foreign key constraint.
4747
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
4848
4949
Before diving into the recipe, be sure your database connection parameters are
50-
correctly setup in the ``.env`` file (or ``.env.local`` override file).
50+
correctly set up in the ``.env`` file (or ``.env.local`` override file).
5151

5252
The first step towards building entity classes from an existing database
5353
is to ask Doctrine to introspect the database and generate the corresponding

form/dynamic_form_modification.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
How to Dynamically Modify Forms Using Form Events
55
=================================================
66

7-
Often times, a form can't be created statically. In this article, you'll learn
7+
Oftentimes, a form can't be created statically. In this article, you'll learn
88
how to customize your form based on three common use-cases:
99

1010
1) :ref:`Customizing your Form Based on the Underlying Data <form-events-underlying-data>`
@@ -506,8 +506,8 @@ exactly the same things on a given form.
506506

507507
.. tip::
508508

509-
The ``FormEvents::POST_SUBMIT`` event does not allow to modify the form
510-
the listener is bound to, but it allows to modify its parent.
509+
The ``FormEvents::POST_SUBMIT`` event does not allow modifications to the form
510+
the listener is bound to, but it allows modifications to its parent.
511511

512512
One piece that is still missing is the client-side updating of your form after
513513
the sport is selected. This should be handled by making an AJAX call back to

form/form_themes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ You can also apply a form theme to a specific child of your form:
156156
{% form_theme form.a_child_form 'form/my_custom_theme.html.twig' %}
157157
158158
This is useful when you want to have a custom theme for a nested form that's
159-
different than the one of your main form. Specify both your themes:
159+
different from the one of your main form. Specify both your themes:
160160

161161
.. code-block:: twig
162162

mercure.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ out of the box in most modern browsers (old versions of Edge and IE require
2727
languages.
2828

2929
Mercure comes with an authorization mechanism,
30-
automatic re-connection in case of network issues
30+
automatic reconnection in case of network issues
3131
with retrieving of lost updates, a presence API,
3232
"connection-less" push for smartphones and auto-discoverability (a supported
3333
client can automatically discover and subscribe to updates of a given resource
@@ -89,7 +89,7 @@ definition that provides a Mercure service. Run ``docker-compose up`` to start i
8989
Configuration
9090
-------------
9191

92-
The preferred way to configure the MercureBundle is using
92+
The preferred way to configure MercureBundle is using
9393
:doc:`environment variables </configuration>`.
9494

9595
When MercureBundle has been installed, the ``.env`` file of your project
@@ -435,7 +435,7 @@ is the way to go.
435435
.. tip::
436436

437437
The native implementation of EventSource doesn't allow specifying headers.
438-
For example, authorization using Bearer token. In order to achieve that, use `a polyfill`_
438+
For example, authorization using a Bearer token. In order to achieve that, use `a polyfill`_
439439

440440
.. code-block:: twig
441441
@@ -595,7 +595,7 @@ its Mercure support.
595595
Testing
596596
--------
597597

598-
During unit testing there is not need to send updates to Mercure.
598+
During unit testing there is no need to send updates to Mercure.
599599

600600
You can instead make use of the `MockHub`::
601601

migration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ unique approach for migration. This guide shows two examples of commonly used
223223
approaches, which you can use as a base for your own approach:
224224

225225
* `Front Controller with Legacy Bridge`_, which leaves the legacy application
226-
untouched and allows to migrate it in phases to the Symfony application.
226+
untouched and allows migrating it in phases to the Symfony application.
227227
* `Legacy Route Loader`_, where the legacy application is integrated in phases
228228
into Symfony, with a fully integrated final result.
229229

performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ overhead that can be avoided as follows:
158158
; php.ini
159159
opcache.validate_timestamps=0
160160
161-
After each deploy, you must empty and regenerate the cache of OPcache. Otherwise
161+
After each deployment, you must empty and regenerate the cache of OPcache. Otherwise
162162
you won't see the updates made in the application. Given that in PHP, the CLI
163163
and the web processes don't share the same OPcache, you cannot clear the web
164164
server OPcache by executing some command in your terminal. These are some of the

workflow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ order:
394394
.. note::
395395

396396
The leaving and entering events are triggered even for transitions that stay
397-
in same place.
397+
in the same place.
398398

399399
.. note::
400400

@@ -453,7 +453,7 @@ it via the marking::
453453
Guard Events
454454
~~~~~~~~~~~~
455455

456-
There are a special kind of events called "Guard events". Their event listeners
456+
There are special types of events called "Guard events". Their event listeners
457457
are invoked every time a call to ``Workflow::can()``, ``Workflow::apply()`` or
458458
``Workflow::getEnabledTransitions()`` is executed. With the guard events you may
459459
add custom logic to decide which transitions should be blocked or not. Here is a

0 commit comments

Comments
 (0)