Skip to content

Commit aeeb3c8

Browse files
committed
Merge branch '2.3' into 2.5
* 2.3: Minor spelling fix [Templating] Added a sentence that explains what a Template Helper is Updated Valid constraint reference Remove incoherence between Doctrine and Propel introduction paragraphs add sidebar for the built-in server in VMs
2 parents 6406a27 + 9e03f2d commit aeeb3c8

File tree

6 files changed

+37
-15
lines changed

6 files changed

+37
-15
lines changed

book/doctrine.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ Databases and Doctrine
55
======================
66

77
One of the most common and challenging tasks for any application
8-
involves persisting and reading information to and from a database. Fortunately,
9-
Symfony comes integrated with `Doctrine`_, a library whose sole goal is to
10-
give you powerful tools to make this easy. In this chapter, you'll learn the
11-
basic philosophy behind Doctrine and see how easy working with a database can
12-
be.
8+
involves persisting and reading information to and from a database. Although
9+
the Symfony full-stack framework doesn't integrate any ORM by default,
10+
the Symfony Standard Edition, which is the most widely used distribution,
11+
comes integrated with `Doctrine`_, a library whose sole goal is to give
12+
you powerful tools to make this easy. In this chapter, you'll learn the
13+
basic philosophy behind Doctrine and see how easy working with a database
14+
can be.
1315

1416
.. note::
1517

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Forms
66

77
Dealing with HTML forms is one of the most common - and challenging - tasks for
88
a web developer. Symfony integrates a Form component that makes dealing with
9-
forms easy. In this chapter, you'll build a complex form from the ground-up,
9+
forms easy. In this chapter, you'll build a complex form from the ground up,
1010
learning the most important features of the form library along the way.
1111

1212
.. note::

book/http_fundamentals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ HTTP is the term used to describe this simple text-based language. And no
3737
matter how you develop on the web, the goal of your server is *always* to
3838
understand simple text requests, and return simple text responses.
3939

40-
Symfony is built from the ground-up around that reality. Whether you realize
40+
Symfony is built from the ground up around that reality. Whether you realize
4141
it or not, HTTP is something you use everyday. With Symfony, you'll learn
4242
how to master it.
4343

components/templating/introduction.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ escaper using the
135135
Helpers
136136
-------
137137

138-
The Templating component can be easily extended via helpers. The component has
138+
The Templating component can be easily extended via helpers. Helpers are PHP objects that
139+
provide features useful in a template context. The component has
139140
2 built-in helpers:
140141

141142
* :doc:`/components/templating/helpers/assetshelper`

cookbook/web_server/built_in.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,29 @@ The command will wait and will respond to incoming HTTP requests until you
3030
terminate it (this is usually done by pressing Ctrl and C).
3131

3232
By default, the web server listens on port 8000 on the loopback device. You
33-
can change the socket passing an ip address and a port as a command-line argument:
33+
can change the socket passing an IP address and a port as a command-line argument:
3434

3535
.. code-block:: bash
3636
3737
$ php app/console server:run 192.168.0.1:8080
3838
39+
.. sidebar:: Using the built-in Web Server from inside a Virtual Machine
40+
41+
If you want to use the built-in web server from inside a virtual machine
42+
and then load the site from a browser on your host machine, you'll need
43+
to listen on the ``0.0.0.0:8000`` address (i.e. on all IP addresses that
44+
are assigned to the virtual machine):
45+
46+
.. code-block:: bash
47+
48+
$ php app/console server:run 0.0.0.0:8000
49+
50+
.. caution::
51+
52+
You should **NEVER** listen to all interfaces on a computer that is
53+
directly accessible from the Internet. The built-in web server is
54+
not designed to be used on public networks.
55+
3956
Command Options
4057
---------------
4158

reference/constraints/Valid.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ object and all sub-objects associated with it.
99
| Applies to | :ref:`property or method <validation-property-target>` |
1010
+----------------+---------------------------------------------------------------------+
1111
| Options | - `traverse`_ |
12-
| | - `message`_ |
12+
| | - `deep`_ |
1313
+----------------+---------------------------------------------------------------------+
14-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Type` |
14+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Valid` |
1515
+----------------+---------------------------------------------------------------------+
1616

1717
.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc
@@ -267,9 +267,11 @@ If this constraint is applied to a property that holds an array of objects,
267267
then each object in that array will be validated only if this option is set
268268
to ``true``.
269269

270-
message
271-
~~~~~~~
270+
deep
271+
~~~~
272272

273-
**type**: ``string`` **default**: ``This value should be true.``
273+
**type**: ``boolean`` **default**: ``false``
274274

275-
This is the message that will be shown if the value is false.
275+
If this constraint is applied to a property that holds an array of objects,
276+
then each object in that array will be validated recursively if this option is set
277+
to ``true``.

0 commit comments

Comments
 (0)