Skip to content

Commit 9807a2f

Browse files
committed
minor #15328 Unifying wording to "configuration parameter" (ThomasLandauer)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- Unifying wording to "configuration parameter" Follow-up of #15326 Commits ------- 40f3f86 Unifying wording to "configuration parameter"
2 parents be5ede7 + 40f3f86 commit 9807a2f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Use Constants to Define Options that Rarely Change
130130
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131131

132132
Configuration options like the number of items to display in some listing rarely
133-
change. Instead of defining them as :ref:`service container parameters <configuration-parameters>`,
133+
change. Instead of defining them as :ref:`configuration parameters <configuration-parameters>`,
134134
define them as PHP constants in the related classes. Example::
135135

136136
// src/Entity/Post.php

routing.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ arbitrary matching logic:
269269
* condition="context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
270270
* )
271271
*
272-
* expressions can also include config parameters:
272+
* expressions can also include configuration parameters:
273273
* condition: "request.headers.get('User-Agent') matches '%app.allowed_browsers%'"
274274
*/
275275
public function contact(): Response
@@ -285,7 +285,7 @@ arbitrary matching logic:
285285
path: /contact
286286
controller: 'App\Controller\DefaultController::contact'
287287
condition: "context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
288-
# expressions can also include config parameters:
288+
# expressions can also include configuration parameters:
289289
# condition: "request.headers.get('User-Agent') matches '%app.allowed_browsers%'"
290290
291291
.. code-block:: xml
@@ -299,7 +299,7 @@ arbitrary matching logic:
299299
300300
<route id="contact" path="/contact" controller="App\Controller\DefaultController::contact">
301301
<condition>context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'</condition>
302-
<!-- expressions can also include config parameters: -->
302+
<!-- expressions can also include configuration parameters: -->
303303
<!-- <condition>request.headers.get('User-Agent') matches '%app.allowed_browsers%'</condition> -->
304304
</route>
305305
</routes>
@@ -314,7 +314,7 @@ arbitrary matching logic:
314314
$routes->add('contact', '/contact')
315315
->controller([DefaultController::class, 'contact'])
316316
->condition('context.getMethod() in ["GET", "HEAD"] and request.headers.get("User-Agent") matches "/firefox/i"')
317-
// expressions can also include config parameters:
317+
// expressions can also include configuration parameters:
318318
// 'request.headers.get("User-Agent") matches "%app.allowed_browsers%"'
319319
;
320320
};
@@ -575,7 +575,7 @@ URL Route Parameters
575575
.. tip::
576576

577577
Route requirements (and route paths too) can include
578-
:ref:`container parameters <configuration-parameters>`, which is useful to
578+
:ref:`configuration parameters <configuration-parameters>`, which is useful to
579579
define complex regular expressions once and reuse them in multiple routes.
580580

581581
.. tip::
@@ -1681,7 +1681,7 @@ these routes.
16811681
[],
16821682
[],
16831683
['HTTP_HOST' => 'm.example.com']
1684-
// or get the value from some container parameter:
1684+
// or get the value from some configuration parameter:
16851685
// ['HTTP_HOST' => 'm.' . $client->getContainer()->getParameter('domain')]
16861686
);
16871687

0 commit comments

Comments
 (0)