Skip to content

Commit 3b8bf9a

Browse files
committed
Merge remote-tracking branch 'upstream/2.7' into 2.7
2 parents d6d2135 + e00a3a2 commit 3b8bf9a

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

best_practices/templates.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ scattered through lots of bundles.
5353

5454
Use lowercased snake_case for directory and template names.
5555

56+
.. best-practice::
57+
58+
Use a prefixed underscore for partial templates in template names.
59+
60+
You often want to reuse template code using the ``include`` function to avoid
61+
redundant code. To determine those partials easily in the filesystem you should
62+
prefix partials and any other template without HTML body or ``extends`` tag
63+
with a single underscore.
64+
5665
Twig Extensions
5766
---------------
5867

bundles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ Learn more
181181

182182
bundles/*
183183

184-
_`third-party bundles`: https://github.com/search?q=topic%3Asymfony-bundle&type=Repositories
184+
.. _`third-party bundles`: https://github.com/search?q=topic%3Asymfony-bundle&type=Repositories

components/serializer.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ the middle. This way, Encoders will only deal with turning specific
2121
**formats** into **arrays** and vice versa. The same way, Normalizers
2222
will deal with turning specific **objects** into **arrays** and vice versa.
2323

24-
Serialization is a complicated topic, and while this component may not work
25-
in all cases, it can be a useful tool while developing tools to serialize
26-
and deserialize your objects.
24+
Serialization is a complex topic. This component may not cover all your use cases out of the box,
25+
but it can be useful for developing tools to serialize and deserialize your objects.
2726

2827
Installation
2928
------------

contributing/code/standards.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ Naming Conventions
190190

191191
* Use namespaces for all classes;
192192

193-
* Prefix abstract classes with ``Abstract``. Please note some early Symfony classes
194-
do not follow this convention and have not been renamed for backward compatibility
195-
reasons. However all new abstract classes must follow this naming convention;
193+
* Prefix all abstract classes with ``Abstract`` except PHPUnit ``*TestCase``.
194+
Please note some early Symfony classes do not follow this convention and
195+
have not been renamed for backward compatibility reasons. However all new
196+
abstract classes must follow this naming convention;
196197

197198
* Suffix interfaces with ``Interface``;
198199

reference/configuration/doctrine.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ Full Default Configuration
2222
some_custom_type:
2323
class: Acme\HelloBundle\MyCustomType
2424
commented: true
25-
# If defined, all the tables whose names match this regular expression are ignored
26-
# by the schema tool (in this example, any table name starting with `wp_`)
27-
#schema_filter: '/^(?!wp_)/'
25+
2826
2927
connections:
3028
# A collection of different named connections (e.g. default, conn2, etc)
@@ -77,6 +75,11 @@ Full Default Configuration
7775
mapping_types:
7876
# an array of mapping types
7977
name: []
78+
79+
# If defined, only the tables whose names match this regular expression are managed
80+
# by the schema tool (in this example, any table name not starting with `wp_`)
81+
#schema_filter: '/^(?!wp_)/'
82+
8083
slaves:
8184
8285
# a collection of named slave connections (e.g. slave1, slave2)

security/acl_advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ After invocation providers also allow to modify, or filter the domain object
174174
before it is returned.
175175

176176
Due to current limitations of the PHP language, there are no
177-
post-authorization capabilities build into the core Security component.
177+
post-authorization capabilities built into the core Security component.
178178
However, there is an experimental JMSSecurityExtraBundle_ which adds these
179179
capabilities. See its documentation for further information on how this is
180180
accomplished.

0 commit comments

Comments
 (0)