Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0c9f835

Browse filesBrowse files
committed
Merge branch '2.7' into 2.8
* 2.7: tweaking language fix(syntax): added a space before has fix(tip): Add the tip block for realpth_cache_size [FIX](Realpath) Change order of configuration types Update without_class.rst [#8767] fix list item termination character Typo added Tobias Nyholm in the core team
2 parents 57d9d9f + 6d98380 commit 0c9f835
Copy full SHA for 0c9f835

File tree

Expand file treeCollapse file tree

4 files changed

+27
-26
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+27
-26
lines changed

‎contributing/code/core_team.rst

Copy file name to clipboardExpand all lines: contributing/code/core_team.rst
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ Active Core Members
8181
components and the SecurityBundle_;
8282

8383
* **Maxime Steinhausser** (`ogizanagi`_) can merge into Config_, Console_,
84-
Form_, Serializer_, DependencyInjection_, and HttpKernel_ components.
84+
Form_, Serializer_, DependencyInjection_, and HttpKernel_ components;
85+
86+
* **Tobias Nyholm** (`Nyholm`) manages the official and contrib recipes
87+
repositories.
8588

8689
* **Deciders** (``@symfony/deciders`` on GitHub):
8790

@@ -223,4 +226,4 @@ discretion of the **Project Leader**.
223226
.. _`lyrixx`: https://github.com/lyrixx/
224227
.. _`chalasr`: https://github.com/chalasr/
225228
.. _`ogizanagi`: https://github.com/ogizanagi/
226-
.. _`csarrazi`: https://github.com/csarrazi/
229+
.. _`Nyholm`: https://github.com/Nyholm

‎form/without_class.rst

Copy file name to clipboardExpand all lines: form/without_class.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ an array.
6363
Adding Validation
6464
-----------------
6565

66-
The only missing piece is validation. Usually, when you call ``$form->isValid()``,
66+
The only missing piece is validation. Usually, when you call ``$form->handleRequest($request)``,
6767
the object is validated by reading the constraints that you applied to that
6868
class. If your form is mapped to an object (i.e. you're using the ``data_class``
6969
option or passing an object to your form), this is almost always the approach

‎performance.rst

Copy file name to clipboardExpand all lines: performance.rst
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ real and absolute file system paths. This increases the performance for
7979
applications like Symfony that open many PHP files, especially on Windows
8080
systems.
8181

82-
By default, PHP sets a ``realpath_cache_size`` of ``16K`` which is too low for
83-
Symfony. Consider updating this value at least to ``4096K``. In addition, cached
84-
paths are only stored for ``120`` seconds by default. Consider updating this
85-
value too using the ``realpath_cache_ttl`` option:
82+
Consider increasing the ``realpath_cache_size`` and ``realpath_cache_ttl``:
8683

8784
.. code-block:: ini
8885
8986
; php.ini
87+
; 4096k is the default value in PHP 7.2
9088
realpath_cache_size=4096K
9189
realpath_cache_ttl=600
9290

‎reference/constraints/Expression.rst

Copy file name to clipboardExpand all lines: reference/constraints/Expression.rst
+19-19Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ One way to accomplish this is with the Expression constraint:
6060

6161
.. configuration-block::
6262

63-
.. code-block:: yaml
64-
65-
# src/AppBundle/Resources/config/validation.yml
66-
AppBundle\Model\BlogPost:
67-
constraints:
68-
- Expression:
69-
expression: "this.getCategory() in ['php', 'symfony'] or !this.isTechnicalPost()"
70-
message: "If this is a tech post, the category should be either php or symfony!"
71-
7263
.. code-block:: php-annotations
7364
7465
// src/AppBundle/Model/BlogPost.php
@@ -87,6 +78,15 @@ One way to accomplish this is with the Expression constraint:
8778
// ...
8879
}
8980
81+
.. code-block:: yaml
82+
83+
# src/AppBundle/Resources/config/validation.yml
84+
AppBundle\Model\BlogPost:
85+
constraints:
86+
- Expression:
87+
expression: "this.getCategory() in ['php', 'symfony'] or !this.isTechnicalPost()"
88+
message: "If this is a tech post, the category should be either php or symfony!"
89+
9090
.. code-block:: xml
9191
9292
<!-- src/AppBundle/Resources/config/validation.xml -->
@@ -141,16 +141,6 @@ more about the expression language syntax, see
141141

142142
.. configuration-block::
143143

144-
.. code-block:: yaml
145-
146-
# src/AppBundle/Resources/config/validation.yml
147-
AppBundle\Model\BlogPost:
148-
properties:
149-
isTechnicalPost:
150-
- Expression:
151-
expression: "this.getCategory() in ['php', 'symfony'] or value == false"
152-
message: "If this is a tech post, the category should be either php or symfony!"
153-
154144
.. code-block:: php-annotations
155145
156146
// src/AppBundle/Model/BlogPost.php
@@ -173,6 +163,16 @@ more about the expression language syntax, see
173163
// ...
174164
}
175165
166+
.. code-block:: yaml
167+
168+
# src/AppBundle/Resources/config/validation.yml
169+
AppBundle\Model\BlogPost:
170+
properties:
171+
isTechnicalPost:
172+
- Expression:
173+
expression: "this.getCategory() in ['php', 'symfony'] or value == false"
174+
message: "If this is a tech post, the category should be either php or symfony!"
175+
176176
.. code-block:: xml
177177
178178
<!-- src/AppBundle/Resources/config/validation.xml -->

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.