Skip to content

Commit 5d412ae

Browse files
committed
Merge branch '2.2' into 2.3
Conflicts: book/forms.rst components/index.rst reference/forms/types.rst
2 parents 3368509 + 1eead73 commit 5d412ae

36 files changed

+245
-106
lines changed

book/forms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ renders the form:
14121412
14131413
{% form_theme form 'AcmeTaskBundle:Form:fields.html.twig' 'AcmeTaskBundle:Form:fields2.html.twig' %}
14141414
1415-
{{ form(form) }}
1415+
<!-- ... render the form -->
14161416
14171417
.. code-block:: html+php
14181418
@@ -1421,7 +1421,7 @@ renders the form:
14211421
14221422
<?php $view['form']->setTheme($form, array('AcmeTaskBundle:Form', 'AcmeTaskBundle:Form')) ?>
14231423
1424-
<?php echo $view['form']->form($form) ?>
1424+
<!-- ... render the form -->
14251425
14261426
The ``form_theme`` tag (in Twig) "imports" the fragments defined in the given
14271427
template and uses them when rendering the form. In other words, when the

book/internals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on top of the previous one.
3030

3131
The deepest level is the :namespace:`Symfony\\Component\\HttpFoundation`
3232
component. HttpFoundation provides the main objects needed to deal with HTTP.
33-
It is an Object-Oriented abstraction of some native PHP functions and
33+
It is an object-oriented abstraction of some native PHP functions and
3434
variables:
3535

3636
* The :class:`Symfony\\Component\\HttpFoundation\\Request` class abstracts

book/performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ to ensure that the cache is cleared whenever any source files change. Otherwise,
3737
the updates you've made won't be seen.
3838

3939
For example, to disable these checks in APC, simply add ``apc.stat=0`` to
40-
your php.ini configuration.
40+
your ``php.ini`` configuration.
4141

4242
.. index::
4343
single: Performance; Autoloader

book/propel.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ Commands
476476

477477
You should read the dedicated section for `Propel commands in Symfony2`_.
478478

479-
.. _`Working With Symfony2`: http://propelorm.org/cookbook/symfony2/working-with-symfony2.html#installation
480-
.. _`PropelBundle configuration section`: http://propelorm.org/cookbook/symfony2/working-with-symfony2.html#configuration
479+
.. _`Working With Symfony2`: http://propelorm.org/Propel/cookbook/symfony2/working-with-symfony2.html#installation
480+
.. _`PropelBundle configuration section`: http://propelorm.org/Propel/cookbook/symfony2/working-with-symfony2.html#configuration
481481
.. _`Relationships`: http://propelorm.org/documentation/04-relationships.html
482482
.. _`Behaviors reference section`: http://propelorm.org/documentation/#behaviors-reference
483-
.. _`Propel commands in Symfony2`: http://propelorm.org/cookbook/symfony2/working-with-symfony2#the-commands
483+
.. _`Propel commands in Symfony2`: http://propelorm.org/Propel/cookbook/symfony2/working-with-symfony2#the-commands

book/routing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,8 @@ form via the same URL, while using distinct controllers for the two actions.
707707

708708
If no ``methods`` are specified, the route will match on *all* methods.
709709

710-
Adding a Host
711-
~~~~~~~~~~~~~
710+
Adding a Host Requirement
711+
~~~~~~~~~~~~~~~~~~~~~~~~~
712712

713713
.. versionadded:: 2.2
714714
Host matching support was added in Symfony 2.2
@@ -1067,8 +1067,8 @@ from the new routing resource.
10671067
:doc:`FrameworkExtraBundle documentation </bundles/SensioFrameworkExtraBundle/annotations/routing>`
10681068
to see how.
10691069

1070-
Adding a Host regex to Imported Routes
1071-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1070+
Adding a Host requirement to Imported Routes
1071+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10721072

10731073
.. versionadded:: 2.2
10741074
Host matching support was added in Symfony 2.2

book/security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ that looks like the following:
146146
* Any URL matching ``/admin/*`` is secured, and only the ``admin`` user
147147
can access it;
148148
* All URLs *not* matching ``/admin/*`` are accessible by all users (and the
149-
user is never prompted to login).
149+
user is never prompted to log in).
150150

151151
Let's look briefly at how security works and how each part of the configuration
152152
comes into play.
@@ -1633,9 +1633,9 @@ the first provider is always used:
16331633
),
16341634
));
16351635
1636-
In this example, if a user tries to login via HTTP authentication, the authentication
1636+
In this example, if a user tries to log in via HTTP authentication, the authentication
16371637
system will use the ``in_memory`` user provider. But if the user tries to
1638-
login via the form login, the ``user_db`` provider will be used (since it's
1638+
log in via the form login, the ``user_db`` provider will be used (since it's
16391639
the default for the firewall as a whole).
16401640

16411641
For more information about user provider and firewall configuration, see
@@ -1867,7 +1867,7 @@ Impersonating a User
18671867
--------------------
18681868

18691869
Sometimes, it's useful to be able to switch from one user to another without
1870-
having to logout and login again (for instance when you are debugging or trying
1870+
having to log out and log in again (for instance when you are debugging or trying
18711871
to understand a bug a user sees that you can't reproduce). This can be easily
18721872
done by activating the ``switch_user`` firewall listener:
18731873

book/testing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ document::
244244
)
245245

246246
The ``server`` array is the raw values that you'd expect to normally
247-
find in the PHP `$_SERVER`_ superglobal. For example, to set the `Content-Type`,
248-
`Referer` and `X-Requested-With' HTTP headers, you'd pass the following (mind
249-
the `HTTP_` prefix for non standard headers)::
247+
find in the PHP `$_SERVER`_ superglobal. For example, to set the ``Content-Type``,
248+
``Referer`` and ``X-Requested-With`` HTTP headers, you'd pass the following (mind
249+
the ``HTTP_`` prefix for non standard headers)::
250250

251251
$client->request(
252252
'GET',

components/console/helpers/dialoghelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ the following to your command::
3131
return;
3232
}
3333

34-
In this case, the user will be asked "Continue with this action", and will return
34+
In this case, the user will be asked "Continue with this action?", and will return
3535
``true`` if the user answers with ``y`` or false in any other case. The third
3636
argument to ``askConfirmation`` is the default value to return if the user doesn't
3737
enter any input.

components/event_dispatcher/generic_event.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ The Generic Event Object
55
========================
66

77
The base :class:`Symfony\\Component\\EventDispatcher\\Event` class provided by the
8-
``Event Dispatcher`` component is deliberately sparse to allow the creation of
9-
API specific event objects by inheritance using OOP. This allow for elegant and
8+
Event Dispatcher component is deliberately sparse to allow the creation of
9+
API specific event objects by inheritance using OOP. This allows for elegant and
1010
readable code in complex applications.
1111

1212
The :class:`Symfony\\Component\\EventDispatcher\\GenericEvent` is available

components/event_dispatcher/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ In many cases, a special ``Event`` subclass that's specific to the given event
188188
is passed to the listener. This gives the listener access to special
189189
information about the event. Check the documentation or implementation of each
190190
event to determine the exact ``Symfony\Component\EventDispatcher\Event``
191-
instance that's being passed. For example, the ``kernel.event`` event passes an
191+
instance that's being passed. For example, the ``kernel.response`` event passes an
192192
instance of ``Symfony\Component\HttpKernel\Event\FilterResponseEvent``::
193193

194194
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
@@ -306,7 +306,7 @@ the ``dispatch`` method. Now, any listener to the ``store.order`` event will
306306
receive the ``FilterOrderEvent`` and have access to the ``Order`` object via
307307
the ``getOrder`` method::
308308

309-
// some listener class that's been registered for "STORE_ORDER" event
309+
// some listener class that's been registered for "store.order" event
310310
use Acme\StoreBundle\Event\FilterOrderEvent;
311311

312312
public function onStoreOrder(FilterOrderEvent $event)

components/filesystem.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ endpoint for filesystem operations::
4646
Mkdir
4747
~~~~~
4848

49-
:method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir` creates directory.
49+
:method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir` creates a directory.
5050
On posix filesystems, directories are created with a default mode value
5151
`0777`. You can use the second argument to set your own mode::
5252

components/http_foundation/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In PHP, the request is represented by some global variables (``$_GET``,
1414
generated by some functions (``echo``, ``header``, ``setcookie``, ...).
1515

1616
The Symfony2 HttpFoundation component replaces these default PHP global
17-
variables and functions by an Object-Oriented layer.
17+
variables and functions by an object-oriented layer.
1818

1919
Installation
2020
------------
@@ -412,7 +412,7 @@ represented by a PHP callable instead of a string::
412412
.. note::
413413

414414
The ``flush()`` function does not flush buffering. If ``ob_start()`` has
415-
been called before or the ``output_buffering`` php.ini option is enabled,
415+
been called before or the ``output_buffering`` ``php.ini`` option is enabled,
416416
you must call ``ob_flush()`` before ``flush()``.
417417

418418
Additionally, PHP isn't the only layer that can buffer output. Your web

components/http_foundation/session_configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ So-called 'native' handlers, are save handlers which are either compiled into
2626
PHP or provided by PHP extensions, such as PHP-Sqlite, PHP-Memcached and so on.
2727

2828
All native save handlers are internal to PHP and as such, have no public facing API.
29-
They must be configured by PHP ini directives, usually ``session.save_path`` and
29+
They must be configured by ``php.ini`` directives, usually ``session.save_path`` and
3030
potentially other driver specific directives. Specific details can be found in
3131
docblock of the ``setOptions()`` method of each class.
3232

@@ -87,7 +87,7 @@ Configuring PHP Sessions
8787
~~~~~~~~~~~~~~~~~~~~~~~~
8888

8989
The :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage`
90-
can configure most of the PHP ini configuration directives which are documented
90+
can configure most of the ``php.ini`` configuration directives which are documented
9191
at `php.net/session.configuration`_.
9292

9393
To configure these settings, pass the keys (omitting the initial ``session.`` part
@@ -131,7 +131,7 @@ example if these were set to ``5/100`` respectively, it would mean a probability
131131
of 5%. Similarly, ``3/4`` would mean a 3 in 4 chance of being called, i.e. 75%.
132132

133133
If the garbage collection handler is invoked, PHP will pass the value stored in
134-
the PHP ini directive ``session.gc_maxlifetime``. The meaning in this context is
134+
the ``php.ini`` directive ``session.gc_maxlifetime``. The meaning in this context is
135135
that any stored session that was saved more than ``maxlifetime`` ago should be
136136
deleted. This allows one to expire records based on idle time.
137137

components/http_foundation/sessions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Quick example::
4646

4747
.. caution::
4848

49-
Symfony sessions are incompatible with PHP ini directive ``session.auto_start = 1``
49+
Symfony sessions are incompatible with ``php.ini`` directive ``session.auto_start = 1``
5050
This directive should be turned off in ``php.ini``, in the webserver directives or
5151
in ``.htaccess``.
5252

components/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The Components
1010
console/index
1111
css_selector
1212
debug
13-
dom_crawler
1413
dependency_injection/index
14+
dom_crawler
1515
event_dispatcher/index
1616
filesystem
1717
finder

components/map.rst.inc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@
103103
* :doc:`/components/routing/introduction`
104104
* :doc:`/components/routing/hostname_pattern`
105105

106+
* :doc:`/components/security/index`
107+
108+
* :doc:`/components/security/introduction`
109+
* :doc:`/components/security/firewall`
110+
* :doc:`/components/security/authentication`
111+
* :doc:`/components/security/authorization`
112+
106113
* **Serializer**
107114

108115
* :doc:`/components/serializer`
@@ -111,13 +118,6 @@
111118

112119
* :doc:`/components/stopwatch`
113120

114-
* :doc:`/components/security/index`
115-
116-
* :doc:`/components/security/introduction`
117-
* :doc:`/components/security/firewall`
118-
* :doc:`/components/security/authentication`
119-
* :doc:`/components/security/authorization`
120-
121121
* :doc:`/components/templating/index`
122122

123123
* :doc:`/components/templating/introduction`

components/property_access/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ The ``getValue`` method can also use the magic ``__get`` method::
166166
class Person
167167
{
168168
private $children = array(
169-
'wouter' => array(...),
169+
'Wouter' => array(...),
170170
);
171171

172172
public function __get($id)
@@ -243,7 +243,7 @@ Writing to Objects
243243
------------------
244244

245245
The ``setValue`` method has the same features as the ``getValue`` method. You
246-
can use setters, the magic ``__set`` or properties to set values::
246+
can use setters, the magic ``__set`` method or properties to set values::
247247

248248
// ...
249249
class Person

0 commit comments

Comments
 (0)