Skip to content

Commit 6d11002

Browse files
committed
Merge branch '2.3' into 2.4
* 2.3: Update form_events.rst Update form_events.rst Update page_creation.rst Update page_creation.rst Update internals.rst
2 parents 1ad82b6 + f6123f1 commit 6d11002

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

book/internals.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Symfony2 internals.
1010

1111
.. note::
1212

13-
You need to read this section only if you want to understand how Symfony2
14-
works behind the scene, or if you want to extend Symfony2.
13+
You only need to read this section if you want to understand how Symfony2
14+
works behind the scenes, or if you want to extend Symfony2.
1515

1616
Overview
1717
--------

book/page_creation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ greeted. To create the page, follow the simple two-step process.
8181
your webserver. The above URL assumes that ``localhost`` points to the
8282
``web`` directory of your new Symfony2 project. For detailed information
8383
on this process, see the documentation on the web server you are using.
84-
Here's the relevant documentation page for some web server you might be using:
84+
Here are some relevant documentation pages for the web server you might be using:
8585

8686
* For Apache HTTP Server, refer to `Apache's DirectoryIndex documentation`_
8787
* For Nginx, refer to `Nginx HttpCoreModule location documentation`_

components/form/form_events.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Registering an event listener is very easy using the Form component.
1414

1515
For example, if you wish to register a function to the
1616
``FormEvents::PRE_SUBMIT`` event, the following code lets you add a field,
17-
depending on the request' values::
17+
depending on the request values::
1818

1919
// ...
2020

@@ -349,7 +349,7 @@ Event subscribers have different uses:
349349
350350
class AddEmailFieldListener implements EventSubscriberInterface
351351
{
352-
public function getSubscribedEvents()
352+
public static function getSubscribedEvents()
353353
{
354354
return array(
355355
FormEvents::PRE_SET_DATA => 'onPreSetData',

0 commit comments

Comments
 (0)