Skip to content

Commit 43b67b8

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Fix ~20 typos in different sections of the documentation
2 parents 8056fec + e20c0ba commit 43b67b8

File tree

20 files changed

+30
-30
lines changed

20 files changed

+30
-30
lines changed

best_practices.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ the fact that a controller should always return a ``Response`` object.
245245
Use Dependency Injection to Get Services
246246
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247247

248-
If you extend the base ``AbstractController``, you can only access to the most
248+
If you extend the base ``AbstractController``, you can only get access to the most
249249
common services (e.g ``twig``, ``router``, ``doctrine``, etc.), directly from the
250250
container via ``$this->container->get()``.
251251
Instead, you must use dependency injection to fetch services by
@@ -289,7 +289,7 @@ Define your Forms as PHP Classes
289289

290290
Creating :ref:`forms in classes <creating-forms-in-classes>` allows to reuse
291291
them in different parts of the application. Besides, not creating forms in
292-
controllers simplify the code and maintenance of the controllers.
292+
controllers simplifies the code and maintenance of the controllers.
293293

294294
Add Form Buttons in Templates
295295
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -388,7 +388,7 @@ Use Webpack Encore to Process Web Assets
388388
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
389389

390390
Web assets are things like CSS, JavaScript and image files that make the
391-
frontend of your site looks and works great. `Webpack`_ is the leading JavaScript
391+
frontend of your site look and work great. `Webpack`_ is the leading JavaScript
392392
module bundler that compiles, transforms and packages assets for usage in a browser.
393393

394394
:doc:`Webpack Encore </frontend>` is a JavaScript library that gets rid of most

components/browser_kit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ provides access to the form properties (e.g. ``$form->getUri()``,
174174
Custom Header Handling
175175
~~~~~~~~~~~~~~~~~~~~~~
176176

177-
The optional HTTP headers passed to the ``request()`` method follows the FastCGI
177+
The optional HTTP headers passed to the ``request()`` method follow the FastCGI
178178
request format (uppercase, underscores instead of dashes and prefixed with ``HTTP_``).
179179
Before saving those headers to the request, they are lower-cased, with ``HTTP_``
180180
stripped, and underscores converted into dashes.

components/console/helpers/progressbar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ to display it can be customized::
293293
.. caution::
294294

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

components/http_kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The HttpKernel Component
99
The HttpKernel component provides a structured process for converting
1010
a ``Request`` into a ``Response`` by making use of the EventDispatcher
1111
component. It's flexible enough to create a full-stack framework (Symfony),
12-
a micro-framework (Silex) or an advanced CMS system (Drupal).
12+
a micro-framework (Silex) or an advanced CMS (Drupal).
1313

1414
Installation
1515
------------

components/property_access.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The PropertyAccess Component
66
============================
77

8-
The PropertyAccess component provides function to read and write from/to an
8+
The PropertyAccess component provides functions to read and write from/to an
99
object or array using a simple string notation.
1010

1111
Installation

configuration/front_controllers_and_kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ the directory of the environment you're using (most commonly ``dev/`` while
247247
developing and debugging). While it can vary, the ``var/cache/dev/`` directory
248248
includes the following:
249249

250-
``srcApp_KernelDevDebugContainer.php``
250+
``App_KernelDevDebugContainer.php``
251251
The cached "service container" that represents the cached application
252252
configuration.
253253

configuration/micro_kernel_trait.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Advanced Example: Twig, Annotations and the Web Debug Toolbar
103103
-------------------------------------------------------------
104104

105105
The purpose of the ``MicroKernelTrait`` is *not* to have a single-file application.
106-
Instead, its goal to give you the power to choose your bundles and structure.
106+
Instead, its goal is to give you the power to choose your bundles and structure.
107107

108108
First, you'll probably want to put your PHP classes in an ``src/`` directory. Configure
109109
your ``composer.json`` file to load from there:

create_framework/http_foundation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,20 @@ fingertips thanks to a nice and simple API::
176176
// the URI being requested (e.g. /about) minus any query parameters
177177
$request->getPathInfo();
178178

179-
// retrieve GET and POST variables respectively
179+
// retrieves GET and POST variables respectively
180180
$request->query->get('foo');
181181
$request->request->get('bar', 'default value if bar does not exist');
182182

183-
// retrieve SERVER variables
183+
// retrieves SERVER variables
184184
$request->server->get('HTTP_HOST');
185185

186186
// retrieves an instance of UploadedFile identified by foo
187187
$request->files->get('foo');
188188

189-
// retrieve a COOKIE value
189+
// retrieves a COOKIE value
190190
$request->cookies->get('PHPSESSID');
191191

192-
// retrieve an HTTP request header, with normalized, lowercase keys
192+
// retrieves a HTTP request header, with normalized, lowercase keys
193193
$request->headers->get('host');
194194
$request->headers->get('content-type');
195195

deployment.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Using Platforms as a Service
6565

6666
Using a Platform as a Service (PaaS) can be a great way to deploy your Symfony
6767
app quickly. There are many PaaS, but we recommend `Platform.sh`_ as it
68-
provides a dedicated Symfony integration and help fund the Symfony development.
68+
provides a dedicated Symfony integration and helps fund the Symfony development.
6969

7070
Using Build Scripts and other Tools
7171
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doctrine/associations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ To update a relationship in the database, you *must* set the relationship on the
592592
*owning* side. The owning side is always where the ``ManyToOne`` mapping is set
593593
(for a ``ManyToMany`` relation, you can choose which side is the owning side).
594594

595-
Does this means it's not possible to call ``$category->addProduct()`` or
595+
Does this mean it's not possible to call ``$category->addProduct()`` or
596596
``$category->removeProduct()`` to update the database? Actually, it *is* possible,
597597
thanks to some clever code that the ``make:entity`` command generated::
598598

0 commit comments

Comments
 (0)