Skip to content

Commit 0fe340d

Browse files
committed
Merge branch '2.8' into 3.3
* 2.8: 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 e304ee7 + 510c6d8 commit 0fe340d

File tree

3 files changed

+16
-4
lines changed

3 files changed

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

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)