Skip to content

Commit 6f30499

Browse files
committed
be keen to newcomers
1 parent 8f3e142 commit 6f30499

26 files changed

+44
-50
lines changed

bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ following conventions:
2929

3030
The Extension class should implement the
3131
:class:`Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface`,
32-
but usually you would simply extend the
32+
but usually you would extend the
3333
:class:`Symfony\\Component\\DependencyInjection\\Extension\\Extension` class::
3434

3535
// src/Acme/HelloBundle/DependencyInjection/AcmeHelloExtension.php

bundles/override.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ the routes from any bundle, then they must be manually imported from somewhere
2929
in your application (e.g. ``app/config/routing.yml``).
3030

3131
The easiest way to "override" a bundle's routing is to never import it at
32-
all. Instead of importing a third-party bundle's routing, simply copy
33-
that routing file into your application, modify it, and import it instead.
32+
all. Instead of importing a third-party bundle's routing, copy that
33+
routing file into your application, modify it, and import it instead.
3434

3535
Controllers
3636
-----------

components/debug.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Usage
2222
-----
2323

2424
The Debug component provides several tools to help you debug PHP code.
25-
Enabling them all is as easy as it can get::
25+
Enabling them all by calling this method::
2626

2727
use Symfony\Component\Debug\Debug;
2828

@@ -83,7 +83,7 @@ throw more helpful exceptions when a class isn't found by the registered
8383
autoloaders. All autoloaders that implement a ``findFile()`` method are replaced
8484
with a ``DebugClassLoader`` wrapper.
8585

86-
Using the ``DebugClassLoader`` is as easy as calling its static
86+
Using the ``DebugClassLoader`` is done by calling its static
8787
:method:`Symfony\\Component\\Debug\\DebugClassLoader::enable` method::
8888

8989
use Symfony\Component\Debug\DebugClassLoader;

components/http_foundation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ the previous requests.
245245
Accessing ``Accept-*`` Headers Data
246246
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247247

248-
You can easily access basic data extracted from ``Accept-*`` headers
248+
You can access basic data extracted from ``Accept-*`` headers
249249
by using the following methods:
250250

251251
:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableContentTypes`
@@ -490,8 +490,8 @@ Serving Files
490490
~~~~~~~~~~~~~
491491

492492
When sending a file, you must add a ``Content-Disposition`` header to your
493-
response. While creating this header for basic file downloads is easy, using
494-
non-ASCII filenames is more involving. The
493+
response. While creating this header for basic file downloads is straightforward,
494+
using non-ASCII filenames is more involving. The
495495
:method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::makeDisposition`
496496
abstracts the hard work behind a simple API::
497497

components/http_kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ to the login page or a 403 Access Denied response.
174174
If a ``Response`` is returned at this stage, the process skips directly to
175175
the :ref:`kernel.response <component-http-kernel-kernel-response>` event.
176176

177-
Other listeners simply initialize things or add more information to the request.
177+
Other listeners initialize things or add more information to the request.
178178
For example, a listener might determine and set the locale on the ``Request``
179179
object.
180180

components/stopwatch.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Alternatively, you can clone the `<https://github.com/symfony/stopwatch>`_ repos
2121
Usage
2222
-----
2323

24-
The Stopwatch component provides an easy and consistent way to measure execution
24+
The Stopwatch component provides an consistent way to measure execution
2525
time of certain parts of code so that you don't constantly have to parse
2626
microtime by yourself. Instead, use the simple
2727
:class:`Symfony\\Component\\Stopwatch\\Stopwatch` class::

components/templating.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ escaper using the
144144
Helpers
145145
-------
146146

147-
The Templating component can be easily extended via helpers. Helpers are PHP objects that
148-
provide features useful in a template context. The component has
149-
one built-in helper:
147+
The Templating component can be extended via helpers. Helpers are PHP objects that
148+
provide features useful in a template context. The component has one built-in helper:
150149

151150
* :doc:`/components/templating/slotshelper`
152151

console/input.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Using Command Options
119119
Unlike arguments, options are not ordered (meaning you can specify them in any
120120
order) and are specified with two dashes (e.g. ``--yell``). Options are
121121
*always* optional, and can be setup to accept a value (e.g. ``--dir=src``) or
122-
simply as a boolean flag without a value (e.g. ``--yell``).
122+
as a boolean flag without a value (e.g. ``--yell``).
123123

124124
For example, add a new option to the command that can be used to specify
125125
how many times in a row the message should be printed::

console/request_context.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ will override the defaults.
7272
Configuring the Request Context per Command
7373
-------------------------------------------
7474

75-
To change it only in one command you can simply fetch the Request Context
75+
To change it only in one command you need to fetch the Request Context
7676
from the ``router`` service and override its settings::
7777

7878
// src/AppBundle/Command/DemoCommand.php

create_framework/dependency_injection.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ framework more configurable, but at the same time, it introduces a lot of
6666
issues:
6767

6868
* We are not able to register custom listeners anymore as the dispatcher is
69-
not available outside the Framework class (an easy workaround could be the
69+
not available outside the Framework class (an workaround could be the
7070
adding of a ``Framework::getEventDispatcher()`` method);
7171

7272
* We have lost the flexibility we had before; you cannot change the
7373
implementation of the ``UrlMatcher`` or of the ``ControllerResolver``
7474
anymore;
7575

76-
* Related to the previous point, we cannot test our framework easily anymore
77-
as it's impossible to mock internal objects;
76+
* Related to the previous point, we cannot test our framework without much
77+
effort anymore as it's impossible to mock internal objects;
7878

7979
* We cannot change the charset passed to ``ResponseListener`` anymore (a
8080
workaround could be to pass it as a constructor argument).
@@ -234,7 +234,7 @@ And the related change in the front controller::
234234

235235
$container->setParameter('routes', include __DIR__.'/../src/app.php');
236236

237-
We have obviously barely scratched the surface of what you can do with the
237+
We have barely scratched the surface of what you can do with the
238238
container: from class names as parameters, to overriding existing object
239239
definitions, from shared service support to dumping a container to a plain PHP class,
240240
and much more. The Symfony dependency injection container is really powerful

0 commit comments

Comments
 (0)