Skip to content

Commit 3c464ff

Browse files
committed
Merge branch '4.4' into 5.3
* 4.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 34a234e + 166607f commit 3c464ff

25 files changed

+43
-45
lines changed

bundles/best_practices.rst

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+1-1
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

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

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

402402
.. tip::

components/console/helpers/table.rst

+2-2
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
@@ -383,7 +383,7 @@ This outputs:
383383
| 978-0804169127 | Divine Comedy | spans multiple rows |
384384
+----------------+---------------+---------------------+
385385
386-
You can use the ``colspan`` and ``rowspan`` options at the same time which allows
386+
You can use the ``colspan`` and ``rowspan`` options at the same time, which allows
387387
you to create any table layout you may wish.
388388

389389
.. _console-modify-rendered-tables:

components/console/single_command_tool.rst

+7-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +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-
.. versionadded:: 5.1
11-
12-
The :class:`Symfony\\Component\\Console\\SingleCommandApplication` class was
13-
introduced in Symfony 5.1.
14-
15-
Fortunately, it is possible to remove this need by declaring a single command
16-
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::
1710

1811
#!/usr/bin/env php
1912
<?php
@@ -35,6 +28,11 @@ application::
3528
})
3629
->run();
3730

31+
.. versionadded:: 5.1
32+
33+
The :class:`Symfony\\Component\\Console\\SingleCommandApplication` class was
34+
introduced in Symfony 5.1.
35+
3836
You can still register a command as usual::
3937

4038
#!/usr/bin/env php

components/dependency_injection/compilation.rst

+2-2
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

+1-1
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+3-3
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ You can also apply a form theme to a specific child of your form:
164164
{% form_theme form.a_child_form 'form/my_custom_theme.html.twig' %}
165165
166166
This is useful when you want to have a custom theme for a nested form that's
167-
different than the one of your main form. Specify both your themes:
167+
different from the one of your main form. Specify both your themes:
168168

169169
.. code-block:: twig
170170

mercure.rst

+4-4
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

+1-1
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

+1-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ order:
401401
.. note::
402402

403403
The leaving and entering events are triggered even for transitions that stay
404-
in same place.
404+
in the same place.
405405

406406
.. note::
407407

@@ -452,7 +452,7 @@ workflow leaves a place::
452452
Guard Events
453453
~~~~~~~~~~~~
454454

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

0 commit comments

Comments
 (0)