Skip to content

Commit 510c6d8

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Added Best Practice guideline for partials/include Backporting #8600 Move `schema_filter` option to the correct place Fix typo in "advanced ACL concepts"
2 parents 0d29d0f + e00a3a2 commit 510c6d8

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

best_practices/templates.rst

+9
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

contributing/code/standards.rst

+4-3
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

+6-3
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

+1-1
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)