Skip to content

Commit 7cb1051

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [Security] PHP Syntax Fix Fix comma use improved Yaml syntax for defining method calls Typo in allow_if condition
2 parents 1fd632f + 2ef94e1 commit 7cb1051

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ important section is ``firewalls``:
272272
'dev' => [
273273
'pattern' => '^/(_(profiler|wdt)|css|images|js)/',
274274
'security' => false,
275-
),
275+
],
276276
'main' => [
277277
'anonymous' => 'lazy',
278278
],

security/access_control.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ key:
290290
# the 'role' and 'allow-if' options work like an OR expression, so
291291
# access is granted if the expression is TRUE or the user has ROLE_ADMIN
292292
roles: 'ROLE_ADMIN'
293-
allow_if: "'127.0.0.1' == request.getClientIp() or request.header.has('X-Secure-Access')"
293+
allow_if: "'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access')"
294294
295295
.. code-block:: xml
296296
@@ -308,7 +308,7 @@ key:
308308
access is granted if the expression is TRUE or the user has ROLE_ADMIN -->
309309
<rule path="^/_internal/secure"
310310
role="ROLE_ADMIN"
311-
allow-if="'127.0.0.1' == request.getClientIp() or request.header.has('X-Secure-Access')"/>
311+
allow-if="'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access')"/>
312312
</config>
313313
</srv:container>
314314
@@ -323,7 +323,7 @@ key:
323323
// the 'role' and 'allow-if' options work like an OR expression, so
324324
// access is granted if the expression is TRUE or the user has ROLE_ADMIN
325325
'roles' => 'ROLE_ADMIN',
326-
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.header.has('X-Secure-Access')',
326+
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers.has('X-Secure-Access')',
327327
],
328328
],
329329
]);

service_container/calls.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ To configure the container to call the ``setLogger`` method, use the ``calls`` k
4040
App\Service\MessageGenerator:
4141
# ...
4242
calls:
43-
- method: setLogger
44-
arguments:
45-
- '@logger'
43+
- setLogger: ['@logger']
4644
4745
.. code-block:: xml
4846
@@ -117,10 +115,7 @@ The configuration to tell the container it should do so would be like:
117115
App\Service\MessageGenerator:
118116
# ...
119117
calls:
120-
- method: withLogger
121-
arguments:
122-
- '@logger'
123-
returns_clone: true
118+
- withLogger: !returns_clone ['@logger']
124119
125120
.. code-block:: xml
126121

workflow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ like this:
129129
'enabled' => true
130130
],
131131
'marking_store' => [
132-
'type' => 'method'
133-
'property' => 'currentPlace'
132+
'type' => 'method',
133+
'property' => 'currentPlace',
134134
],
135135
'supports' => [BlogPost::class],
136136
'initial_marking' => 'draft',

0 commit comments

Comments
 (0)