Skip to content

Commit bd9a614

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: tweaking language fix(syntax): added a space before has fix(tip): Add the tip block for realpth_cache_size [FIX](Realpath) Show controller tag for PHP configuration Change order of configuration types remove needless PHP version Update without_class.rst [#8767] fix list item termination character Typo added Tobias Nyholm in the core team
2 parents 3d874fe + 1fd33a1 commit bd9a614

File tree

5 files changed

+28
-26
lines changed

5 files changed

+28
-26
lines changed

contributing/code/core_team.rst

Lines 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

Lines 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

Lines 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

Lines 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-
# config/validator/validation.yaml
66-
App\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/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+
# config/validator/validation.yaml
84+
App\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
<!-- config/validator/validation.xml -->
@@ -141,16 +141,6 @@ more about the expression language syntax, see
141141

142142
.. configuration-block::
143143

144-
.. code-block:: yaml
145-
146-
# config/validator/validation.yaml
147-
App\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/Model/BlogPost.php
@@ -173,6 +163,16 @@ more about the expression language syntax, see
173163
// ...
174164
}
175165
166+
.. code-block:: yaml
167+
168+
# config/validator/validation.yaml
169+
App\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
<!-- config/validator/validation.xml -->

service_container/3.3-di-changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are
364364
365365
// ...
366366
367+
$definition->addTag('controller.service_arguments');
367368
$this->registerClasses($definition, 'App\\Controller\\', '../src/Controller/*');
368369
369370
But, you might not even notice this. First, your controllers *can* still extend

0 commit comments

Comments
 (0)