Skip to content

Commit 2811ac0

Browse files
committed
Merge pull request symfony#3173 from bicpi/fixing_typos_formatting_logic_collection
Collection of fixes: Typos, Formatting, Logic, Links
2 parents e51fd41 + 28c800c commit 2811ac0

File tree

26 files changed

+64
-64
lines changed

26 files changed

+64
-64
lines changed

book/http_fundamentals.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ So then, what *is* the Symfony2 *Framework*? The *Symfony2 Framework* is
551551
a PHP library that accomplishes two distinct tasks:
552552

553553
#. Provides a selection of components (i.e. the Symfony2 Components) and
554-
third-party libraries (e.g. `Swiftmailer`_ for sending emails);
554+
third-party libraries (e.g. `Swift Mailer`_ for sending emails);
555555

556556
#. Provides sensible configuration and a "glue" library that ties all of these
557557
pieces together.
@@ -577,4 +577,4 @@ sensible defaults. For more advanced users, the sky is the limit.
577577
.. _`Validator`: https://github.com/symfony/Validator
578578
.. _`Security`: https://github.com/symfony/Security
579579
.. _`Translation`: https://github.com/symfony/Translation
580-
.. _`Swiftmailer`: http://swiftmailer.org/
580+
.. _`Swift Mailer`: http://swiftmailer.org/

book/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ The Client used by functional tests creates a Kernel that runs in a special
677677
in the ``test`` environment, you can tweak any of your application's settings
678678
specifically for testing.
679679

680-
For example, by default, the swiftmailer is configured to *not* actually
680+
For example, by default, the Swift Mailer is configured to *not* actually
681681
deliver emails in the ``test`` environment. You can see this under the ``swiftmailer``
682682
configuration option:
683683

components/dependency_injection/compilation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It is compiled by running::
1313

1414
$container->compile();
1515

16-
The compile method uses *Compiler Passes* for the compilation. The *Dependency Injection*
16+
The compile method uses *Compiler Passes* for the compilation. The Dependency Injection
1717
component comes with several passes which are automatically registered for
1818
compilation. For example the :class:`Symfony\\Component\\DependencyInjection\\Compiler\\CheckDefinitionValidityPass`
1919
checks for various potential issues with the definitions that have been set
@@ -40,7 +40,7 @@ and can be registered with the container with::
4040

4141
$container->registerExtension($extension);
4242

43-
The main work of the extension is done in the ``load`` method. In the load method
43+
The main work of the extension is done in the ``load`` method. In the ``load`` method
4444
you can load configuration from one or more configuration files as well as
4545
manipulate the container definitions using the methods shown in :doc:`/components/dependency_injection/definitions`.
4646

components/dependency_injection/definitions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ You can add a new argument to the end of the arguments array using::
7373
$definition->addArgument($argument);
7474

7575
The argument can be a string, an array, a service parameter by using ``%parameter_name%``
76-
or a service id by using ::
76+
or a service id by using::
7777

7878
use Symfony\Component\DependencyInjection\Reference;
7979

@@ -122,6 +122,6 @@ You can also replace any existing method calls with an array of new ones with::
122122
.. note::
123123

124124
The methods here that change service definitions can only be used before
125-
the container is compiled, once the container is compiled you cannot
125+
the container is compiled. Once the container is compiled you cannot
126126
manipulate service definitions further. To learn more about compiling
127127
the container see :doc:`/components/dependency_injection/compilation`.

components/dependency_injection/factories.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For this situation, you can use a factory to create the object and tell the
1212
service container to call a method on the factory rather than directly instantiating
1313
the class.
1414

15-
Suppose you have a factory that configures and returns a new NewsletterManager
15+
Suppose you have a factory that configures and returns a new ``NewsletterManager``
1616
object::
1717

1818
class NewsletterFactory

components/dependency_injection/parameters.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ One use for this is to inject the values into your services. This allows
6060
you to configure different versions of services between applications or multiple
6161
services based on the same class but configured differently within a single
6262
application. You could inject the choice of mail transport into the ``Mailer``
63-
class directly but by making it a parameter. This makes it easier to change
63+
class directly. But declaring it as a parameter makes it easier to change
6464
rather than being tied up and hidden with the service definition:
6565

6666
.. configuration-block::
@@ -343,7 +343,7 @@ Start the string with ``@`` or ``@?`` to reference a service in Yaml.
343343
converted into the string ``"@mailer"`` instead of referencing the
344344
``mailer`` service.
345345

346-
Xml
346+
XML
347347
~~~
348348

349349
In XML, use the ``service`` type. The behavior if the service does not exist
@@ -352,7 +352,7 @@ is thrown. Valid values for ``on-invalid`` are ``null`` (uses ``null`` in place
352352
of the missing service) or ``ignored`` (very similar, except if used on a
353353
method call, the method call is removed).
354354

355-
Php
355+
PHP
356356
~~~
357357

358358
In PHP, you can use the

components/dependency_injection/tags.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To begin with, define the ``TransportChain`` class::
2727
$this->transports = array();
2828
}
2929

30-
public function addTransport(\Swift_Transport $transport)
30+
public function addTransport(\Swift_Transport $transport)
3131
{
3232
$this->transports[] = $transport;
3333
}
@@ -176,7 +176,7 @@ Adding additional attributes on Tags
176176
------------------------------------
177177

178178
Sometimes you need additional information about each service that's tagged with your tag.
179-
For example, you might want to add an alias to each TransportChain.
179+
For example, you might want to add an alias to each member of the transport chain.
180180

181181
To begin with, change the ``TransportChain`` class::
182182

components/event_dispatcher/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ Or::
564564

565565
Or::
566566

567-
$response = $dispatcher->dispatch('bar.event', new BarEvent())->getBar();
567+
$bar = $dispatcher->dispatch('bar.event', new BarEvent())->getBar();
568568

569569
and so on...
570570

components/form/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,12 @@ and then access it whenever you need to build a form.
334334

335335
.. note::
336336

337-
In this document, the form factory is always a locally variable called
337+
In this document, the form factory is always a local variable called
338338
``$formFactory``. The point here is that you will probably need to create
339339
this object in some more "global" way so you can access it from anywhere.
340340

341341
Exactly how you gain access to your one form factory is up to you. If you're
342-
using a :term`Service Container`, then you should add the form factory to
342+
using a :term:`Service Container`, then you should add the form factory to
343343
your container and grab it out whenever you need to. If your application
344344
uses global or static variables (not usually a good idea), then you can store
345345
the object on some static class or do something similar.
@@ -414,7 +414,7 @@ it and :ref:`process the form submission <component-form-intro-handling-submissi
414414
Setting Default Values
415415
~~~~~~~~~~~~~~~~~~~~~~
416416

417-
If you need you form to load with some default values (or you're building
417+
If you need your form to load with some default values (or you're building
418418
an "edit" form), simply pass in the default data when creating your form
419419
builder:
420420

components/http_foundation/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ can be accessed via several public properties:
6161

6262
* ``cookies``: equivalent of ``$_COOKIE``;
6363

64-
* ``attributes``: no equivalent - used by your app to store other data (see :ref:`below <component-foundation-attributes>`)
64+
* ``attributes``: no equivalent - used by your app to store other data (see :ref:`below <component-foundation-attributes>`);
6565

6666
* ``files``: equivalent of ``$_FILES``;
6767

@@ -109,7 +109,7 @@ methods to retrieve and update its data:
109109
parameter by name;
110110

111111
* :method:`Symfony\\Component\\HttpFoundation\\ParameterBag::has`: Returns
112-
true if the parameter is defined;
112+
``true`` if the parameter is defined;
113113

114114
* :method:`Symfony\\Component\\HttpFoundation\\ParameterBag::remove`: Removes
115115
a parameter.
@@ -461,7 +461,7 @@ whether or not the ``X-Sendfile-Type`` header should be trusted and call
461461
:method:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse::trustXSendfileTypeHeader`
462462
if it should::
463463

464-
$response::trustXSendfileTypeHeader();
464+
BinaryFileResponse::trustXSendfileTypeHeader();
465465

466466
You can still set the ``Content-Type`` of the sent file, or change its ``Content-Disposition``::
467467

0 commit comments

Comments
 (0)