Skip to content

Commit 850fde9

Browse files
committed
Merge branch '2.2' into 2.3
Conflicts: book/page_creation.rst components/filesystem.rst components/form/introduction.rst components/locale.rst cookbook/form/dynamic_form_modification.rst cookbook/form/unit_testing.rst cookbook/form/use_virtuals_forms.rst cookbook/service_container/scopes.rst
2 parents 36ebcab + f14ef95 commit 850fde9

File tree

126 files changed

+396
-439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+396
-439
lines changed

book/doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ and ``nullable``. Take a few examples:
14901490
fields:
14911491
# A string field length 255 that cannot be null
14921492
# (reflecting the default values for the "length" and *nullable* options)
1493-
# type attribute is necessary in yaml definitions
1493+
# type attribute is necessary in YAML definitions
14941494
name:
14951495
type: string
14961496
@@ -1507,7 +1507,7 @@ and ``nullable``. Take a few examples:
15071507
<!--
15081508
A string field length 255 that cannot be null
15091509
(reflecting the default values for the "length" and *nullable* options)
1510-
type attribute is necessary in xml definitions
1510+
type attribute is necessary in XML definitions
15111511
-->
15121512
<field name="name" type="string" />
15131513
<field name="email"
@@ -1569,7 +1569,7 @@ Some notable or interesting tasks include:
15691569
.. note::
15701570

15711571
To be able to load data fixtures to your database, you will need to have
1572-
the ``DoctrineFixturesBundle`` bundle installed. To learn how to do it,
1572+
the DoctrineFixturesBundle bundle installed. To learn how to do it,
15731573
read the ":doc:`/bundles/DoctrineFixturesBundle/index`" entry of the
15741574
documentation.
15751575

book/forms.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ learning the most important features of the form library along the way.
1111

1212
.. note::
1313

14-
The Symfony form component is a standalone library that can be used outside
15-
of Symfony2 projects. For more information, see the `Symfony2 Form Component`_
14+
The Symfony Form component is a standalone library that can be used outside
15+
of Symfony2 projects. For more information, see the `Symfony2 Form component`_
1616
on Github.
1717

1818
.. index::
@@ -186,7 +186,7 @@ it into a format that's suitable for being rendered in an HTML form.
186186
The form system is smart enough to access the value of the protected
187187
``task`` property via the ``getTask()`` and ``setTask()`` methods on the
188188
``Task`` class. Unless a property is public, it *must* have a "getter" and
189-
"setter" method so that the form component can get and put data onto the
189+
"setter" method so that the Form component can get and put data onto the
190190
property. For a Boolean property, you can use an "isser" or "hasser" method
191191
(e.g. ``isPublished()`` or ``hasReminder()``) instead of a getter (e.g.
192192
``getPublished()`` or ``getReminder()``).
@@ -1213,7 +1213,7 @@ Embedded Forms
12131213
Often, you'll want to build a form that will include fields from many different
12141214
objects. For example, a registration form may contain data belonging to
12151215
a ``User`` object as well as many ``Address`` objects. Fortunately, this
1216-
is easy and natural with the form component.
1216+
is easy and natural with the Form component.
12171217
12181218
Embedding a Single Object
12191219
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1415,7 +1415,7 @@ do this, create a new template file that will store the new markup:
14151415
</div>
14161416
14171417
The ``form_row`` form fragment is used when rendering most fields via the
1418-
``form_row`` function. To tell the form component to use your new ``form_row``
1418+
``form_row`` function. To tell the Form component to use your new ``form_row``
14191419
fragment defined above, add the following to the top of the template that
14201420
renders the form:
14211421
@@ -1896,7 +1896,7 @@ Learn more from the Cookbook
18961896
* :doc:`/cookbook/form/dynamic_form_modification`
18971897
* :doc:`/cookbook/form/data_transformers`
18981898
1899-
.. _`Symfony2 Form Component`: https://github.com/symfony/Form
1899+
.. _`Symfony2 Form component`: https://github.com/symfony/Form
19001900
.. _`DateTime`: http://php.net/manual/en/class.datetime.php
19011901
.. _`Twig Bridge`: https://github.com/symfony/symfony/tree/2.2/src/Symfony/Bridge/Twig
19021902
.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/2.2/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig

book/from_flat_php_to_symfony2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ the layout:
247247
You've now introduced a methodology that allows for the reuse of the
248248
layout. Unfortunately, to accomplish this, you're forced to use a few ugly
249249
PHP functions (``ob_start()``, ``ob_get_clean()``) in the template. Symfony2
250-
uses a ``Templating`` component that allows this to be accomplished cleanly
250+
uses a Templating component that allows this to be accomplished cleanly
251251
and easily. You'll see it in action shortly.
252252

253253
Adding a Blog "show" Page
@@ -583,7 +583,7 @@ them for you. Here's the same sample application, now built in Symfony2::
583583
}
584584

585585
The two controllers are still lightweight. Each uses the :doc:`Doctrine ORM library </book/doctrine>`
586-
to retrieve objects from the database and the ``Templating`` component to
586+
to retrieve objects from the database and the Templating component to
587587
render a template and return a ``Response`` object. The list template is
588588
now quite a bit simpler:
589589

@@ -688,7 +688,7 @@ migrating the blog from flat PHP to Symfony2 has improved life:
688688
Templating, Security, Form, Validation and Translation components (to name
689689
a few);
690690

691-
* The application now enjoys **fully-flexible URLs** thanks to the ``Routing``
691+
* The application now enjoys **fully-flexible URLs** thanks to the Routing
692692
component;
693693

694694
* Symfony2's HTTP-centric architecture gives you access to powerful tools

book/http_fundamentals.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ have all the request information at your fingertips::
246246
As a bonus, the ``Request`` class does a lot of work in the background that
247247
you'll never need to worry about. For example, the ``isSecure()`` method
248248
checks the *three* different values in PHP that can indicate whether or not
249-
the user is connecting via a secured connection (i.e. ``https``).
249+
the user is connecting via a secured connection (i.e. HTTPS).
250250

251251
.. sidebar:: ParameterBags and Request attributes
252252

@@ -293,7 +293,7 @@ and create the appropriate response based on your application logic*.
293293
.. tip::
294294

295295
The ``Request`` and ``Response`` classes are part of a standalone component
296-
included with Symfony called ``HttpFoundation``. This component can be
296+
included with Symfony called HttpFoundation. This component can be
297297
used entirely independently of Symfony and also provides classes for handling
298298
sessions and file uploads.
299299

book/installation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Installing a Symfony2 Distribution
2020
.. tip::
2121

2222
First, check that you have installed and configured a Web server (such
23-
as Apache) with PHP 5.3.8 or higher. For more information on Symfony2
24-
requirements, see the :doc:`requirements reference </reference/requirements>`.
23+
as Apache) with PHP. For more information on Symfony2 requirements, see the
24+
:doc:`requirements reference </reference/requirements>`.
2525

2626
Symfony2 packages "distributions", which are fully-functional applications
2727
that include the Symfony2 core libraries, a selection of useful bundles, a
@@ -180,7 +180,7 @@ Symfony itself - into the ``vendor/`` directory.
180180
.. tip::
181181

182182
When running ``php composer.phar install`` or ``php composer.phar update``,
183-
composer will execute post install/update commands to clear the cache
183+
Composer will execute post install/update commands to clear the cache
184184
and install assets. By default, the assets will be copied into your ``web``
185185
directory.
186186

@@ -321,11 +321,11 @@ Using Source Control
321321

322322
If you're using a version control system like ``Git`` or ``Subversion``, you
323323
can setup your version control system and begin committing your project to
324-
it as normal. The Symfony Standard edition *is* the starting point for your
324+
it as normal. The Symfony Standard Edition *is* the starting point for your
325325
new project.
326326

327327
For specific instructions on how best to setup your project to be stored
328-
in git, see :doc:`/cookbook/workflow/new_project_git`.
328+
in Git, see :doc:`/cookbook/workflow/new_project_git`.
329329

330330
Ignoring the ``vendor/`` Directory
331331
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

book/internals.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ on top of the previous one.
2525
Composer's autoloader (``vendor/autoload.php``), which is included in
2626
the ``app/autoload.php`` file.
2727

28-
``HttpFoundation`` Component
29-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
HttpFoundation Component
29+
~~~~~~~~~~~~~~~~~~~~~~~~
3030

3131
The deepest level is the :namespace:`Symfony\\Component\\HttpFoundation`
3232
component. HttpFoundation provides the main objects needed to deal with HTTP.
@@ -46,10 +46,10 @@ variables:
4646

4747
.. note::
4848

49-
Read more about the :doc:`HttpFoundation Component </components/http_foundation/introduction>`.
49+
Read more about the :doc:`HttpFoundation component </components/http_foundation/introduction>`.
5050

51-
``HttpKernel`` Component
52-
~~~~~~~~~~~~~~~~~~~~~~~~
51+
HttpKernel Component
52+
~~~~~~~~~~~~~~~~~~~~
5353

5454
On top of HttpFoundation is the :namespace:`Symfony\\Component\\HttpKernel`
5555
component. HttpKernel handles the dynamic part of HTTP; it is a thin wrapper
@@ -58,16 +58,16 @@ handled. It also provides extension points and tools that makes it the ideal
5858
starting point to create a Web framework without too much overhead.
5959

6060
It also optionally adds configurability and extensibility, thanks to the
61-
Dependency Injection component and a powerful plugin system (bundles).
61+
DependencyInjection component and a powerful plugin system (bundles).
6262

6363
.. seealso::
6464

65-
Read more about the :doc:`HttpKernel Component </components/http_kernel/introduction>`,
65+
Read more about the :doc:`HttpKernel component </components/http_kernel/introduction>`,
6666
:doc:`Dependency Injection </book/service_container>` and
6767
:doc:`Bundles </cookbook/bundles/best_practices>`.
6868

69-
``FrameworkBundle`` Bundle
70-
~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
FrameworkBundle
70+
~~~~~~~~~~~~~~~
7171

7272
The :namespace:`Symfony\\Bundle\\FrameworkBundle` bundle is the bundle that
7373
ties the main components and libraries together to make a lightweight and fast
@@ -235,8 +235,8 @@ add the following code at the beginning of your listener method::
235235

236236
.. tip::
237237

238-
If you are not yet familiar with the Symfony2 Event Dispatcher, read the
239-
:doc:`Event Dispatcher Component Documentation </components/event_dispatcher/introduction>`
238+
If you are not yet familiar with the Symfony2 EventDispatcher, read the
239+
:doc:`EventDispatcher component documentation </components/event_dispatcher/introduction>`
240240
section first.
241241

242242
.. index::
@@ -254,7 +254,7 @@ or setup variables so that a Controller can be called after the event. Any
254254
listener can return a ``Response`` object via the ``setResponse()`` method on
255255
the event. In this case, all other listeners won't be called.
256256

257-
This event is used by ``FrameworkBundle`` to populate the ``_controller``
257+
This event is used by the FrameworkBundle to populate the ``_controller``
258258
``Request`` attribute, via the
259259
:class:`Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener`. RequestListener
260260
uses a :class:`Symfony\\Component\\Routing\\RouterInterface` object to match
@@ -273,7 +273,7 @@ the ``Request`` and determine the Controller name (stored in the
273273

274274
*Event Class*: :class:`Symfony\\Component\\HttpKernel\\Event\\FilterControllerEvent`
275275

276-
This event is not used by ``FrameworkBundle``, but can be an entry point used
276+
This event is not used by the FrameworkBundle, but can be an entry point used
277277
to modify the controller that should be executed::
278278

279279
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
@@ -299,7 +299,7 @@ to modify the controller that should be executed::
299299

300300
*Event Class*: :class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent`
301301

302-
This event is not used by ``FrameworkBundle``, but it can be used to implement
302+
This event is not used by the FrameworkBundle, but it can be used to implement
303303
a view sub-system. This event is called *only* if the Controller does *not*
304304
return a ``Response`` object. The purpose of the event is to allow some other
305305
return value to be converted into a ``Response``.
@@ -342,7 +342,7 @@ The purpose of this event is to allow other systems to modify or replace the
342342
// ... modify the response object
343343
}
344344

345-
The ``FrameworkBundle`` registers several listeners:
345+
The FrameworkBundle registers several listeners:
346346

347347
* :class:`Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener`:
348348
collects data for the current request;
@@ -384,7 +384,7 @@ was already served to the client.
384384

385385
*Event Class*: :class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`
386386

387-
``FrameworkBundle`` registers an
387+
The FrameworkBundle registers an
388388
:class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener` that
389389
forwards the ``Request`` to a given Controller (the value of the
390390
``exception_listener.controller`` parameter -- must be in the
@@ -426,14 +426,14 @@ and set a new ``Exception`` object, or do nothing::
426426
Read more on the :ref:`kernel.exception event <component-http-kernel-kernel-exception>`.
427427

428428
.. index::
429-
single: Event Dispatcher
429+
single: EventDispatcher
430430

431-
The Event Dispatcher
432-
--------------------
431+
The EventDispatcher
432+
-------------------
433433

434-
The event dispatcher is a standalone component that is responsible for much
434+
The EventDispatcher is a standalone component that is responsible for much
435435
of the underlying logic and flow behind a Symfony request. For more information,
436-
see the :doc:`Event Dispatcher Component Documentation </components/event_dispatcher/introduction>`.
436+
see the :doc:`EventDispatcher component documentation </components/event_dispatcher/introduction>`.
437437

438438
.. index::
439439
single: Profiler
@@ -654,4 +654,4 @@ Learn more from the Cookbook
654654
* :doc:`/cookbook/event_dispatcher/class_extension`
655655
* :doc:`/cookbook/event_dispatcher/method_behavior`
656656

657-
.. _`Symfony2 Dependency Injection component`: https://github.com/symfony/DependencyInjection
657+
.. _`Symfony2 DependencyInjection component`: https://github.com/symfony/DependencyInjection

book/page_creation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ format you prefer:
839839

840840
Each top-level entry like ``framework`` or ``twig`` defines the configuration
841841
for a particular bundle. For example, the ``framework`` key defines the configuration
842-
for the core Symfony ``FrameworkBundle`` and includes configuration for the
842+
for the core Symfony FrameworkBundle and includes configuration for the
843843
routing, templating, and other core systems.
844844

845845
For now, don't worry about the specific configuration options in each section.
@@ -853,7 +853,7 @@ options of each feature.
853853
three formats (YAML, XML and PHP). Each has its own advantages and
854854
disadvantages. The choice of which to use is up to you:
855855

856-
* *YAML*: Simple, clean and readable (learn more about yaml in
856+
* *YAML*: Simple, clean and readable (learn more about YAML in
857857
":doc:`/components/yaml/yaml_format`");
858858

859859
* *XML*: More powerful than YAML at times and supports IDE autocompletion;
@@ -863,7 +863,7 @@ options of each feature.
863863
Default Configuration Dump
864864
~~~~~~~~~~~~~~~~~~~~~~~~~~
865865

866-
You can dump the default configuration for a bundle in yaml to the console using
866+
You can dump the default configuration for a bundle in YAML to the console using
867867
the ``config:dump-reference`` command. Here is an example of dumping the default
868868
FrameworkBundle configuration:
869869

book/propel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ After creating your ``schema.xml``, generate your model from it by running:
126126
$ php app/console propel:model:build
127127
128128
This generates each model class to quickly develop your application in the
129-
``Model/`` directory the ``AcmeStoreBundle`` bundle.
129+
``Model/`` directory of the ``AcmeStoreBundle`` bundle.
130130

131131
Creating the Database Tables/Schema
132132
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

book/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ In an upcoming section, you'll learn how to generate URLs from inside templates.
11751175

11761176
.. tip::
11771177

1178-
If the frontend of your application uses AJAX requests, you might want
1178+
If the frontend of your application uses Ajax requests, you might want
11791179
to be able to generate URLs in JavaScript based on your routing configuration.
11801180
By using the `FOSJsRoutingBundle`_, you can do exactly that:
11811181

book/security.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ application with HTTP Basic authentication.
3131
Basic Example: HTTP Authentication
3232
----------------------------------
3333

34-
The security component can be configured via your application configuration.
34+
The Security component can be configured via your application configuration.
3535
In fact, most standard security setups are just a matter of using the right
3636
configuration. The following configuration tells Symfony to secure any URL
3737
matching ``/admin/*`` and to ask the user for credentials using basic HTTP
@@ -1013,7 +1013,7 @@ authorization from inside a controller::
10131013

10141014
.. _book-security-securing-controller-annotations:
10151015

1016-
You can also choose to install and use the optional ``JMSSecurityExtraBundle``,
1016+
You can also choose to install and use the optional JMSSecurityExtraBundle,
10171017
which can secure your controller using annotations::
10181018

10191019
// ...
@@ -1038,7 +1038,7 @@ the one seen in the previous section. For example, suppose you have a service
10381038
You can restrict use of this class - no matter where it's being used from -
10391039
to users that have a specific role.
10401040

1041-
For more information on how you can use the security component to secure
1041+
For more information on how you can use the Security component to secure
10421042
different services and methods in your application, see :doc:`/cookbook/security/securing_services`.
10431043

10441044
Access Control Lists (ACLs): Securing Individual Database Objects
@@ -1049,7 +1049,7 @@ posts. Now, you want a user to be able to edit his own comments, but not
10491049
those of other users. Also, as the admin user, you yourself want to be able
10501050
to edit *all* comments.
10511051

1052-
The security component comes with an optional access control list (ACL) system
1052+
The Security component comes with an optional access control list (ACL) system
10531053
that you can use when you need to control access to individual instances
10541054
of an object in your system. *Without* ACL, you can secure your system so that
10551055
only certain users can edit blog comments in general. But *with* ACL, you
@@ -2033,7 +2033,7 @@ Utilities
20332033
.. versionadded:: 2.2
20342034
The ``StringUtils`` and ``SecureRandom`` classes were added in Symfony 2.2
20352035

2036-
The Symfony Security Component comes with a collection of nice utilities related
2036+
The Symfony Security component comes with a collection of nice utilities related
20372037
to security. These utilities are used by Symfony, but you should also use
20382038
them if you want to solve the problem they address.
20392039

@@ -2086,7 +2086,7 @@ Final Words
20862086
-----------
20872087

20882088
Security can be a deep and complex issue to solve correctly in your application.
2089-
Fortunately, Symfony's security component follows a well-proven security
2089+
Fortunately, Symfony's Security component follows a well-proven security
20902090
model based around *authentication* and *authorization*. Authentication,
20912091
which always happens first, is handled by a firewall whose job is to determine
20922092
the identity of the user through several different methods (e.g. HTTP authentication,

0 commit comments

Comments
 (0)