From 06494a897bcce1d5479133ead2a7530be33eb79b Mon Sep 17 00:00:00 2001 From: Ali Sol Date: Mon, 20 Oct 2025 16:05:54 +0330 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9Cconstrutor=E2=80=9D=20typos=20ac?= =?UTF-8?q?ross=20docs=20(constructor)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Token-only typo fixes (no style/wording/formatting changes): - html_sanitizer.rst: construtor → constructor - lock.rst: construtor → constructor - rate_limiter.rst: construtor → constructor - reference/configuration/framework.rst: construtor → constructor - workflow.rst: construtor → constructor --- html_sanitizer.rst | 2 +- lock.rst | 2 +- rate_limiter.rst | 2 +- reference/configuration/framework.rst | 2 +- workflow.rst | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html_sanitizer.rst b/html_sanitizer.rst index 54e065cf484..61441c6d41f 100644 --- a/html_sanitizer.rst +++ b/html_sanitizer.rst @@ -219,7 +219,7 @@ service. Now you have two ways of injecting it in any service or controller: **(1) Use a specific argument name** -Type-hint your construtor/method argument with ``HtmlSanitizerInterface`` and name +Type-hint your constructor/method argument with ``HtmlSanitizerInterface`` and name the argument using this pattern: "HTML sanitizer name in camelCase". For example, to inject the ``app.post_sanitizer`` defined earlier, use an argument named ``$appPostSanitizer``:: diff --git a/lock.rst b/lock.rst index 179a5cd9d05..03584fbfaa9 100644 --- a/lock.rst +++ b/lock.rst @@ -289,7 +289,7 @@ them in any service or controller: **(1) Use a specific argument name** -Type-hint your construtor/method argument with ``LockFactory`` and name the +Type-hint your constructor/method argument with ``LockFactory`` and name the argument using this pattern: "lock name in camelCase" + ``LockFactory`` suffix. For example, to inject the ``invoice`` package defined earlier:: diff --git a/rate_limiter.rst b/rate_limiter.rst index f3785eddd9b..7b4a1b0b509 100644 --- a/rate_limiter.rst +++ b/rate_limiter.rst @@ -227,7 +227,7 @@ them in any service or controller: **(1) Use a specific argument name** -Type-hint your construtor/method argument with ``RateLimiterFactory`` and name +Type-hint your constructor/method argument with ``RateLimiterFactory`` and name the argument using this pattern: "rate limiter name in camelCase" + ``Limiter`` suffix. For example, to inject the ``anonymous_api`` limiter defined earlier, use an argument named ``$anonymousApiLimiter``:: diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index cbd9fbbf21a..d2be5a2925a 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -2554,7 +2554,7 @@ them in any service or controller: **(1) Use a specific argument name** -Type-hint your construtor/method argument with ``PackageInterface`` and name +Type-hint your constructor/method argument with ``PackageInterface`` and name the argument using this pattern: "asset package name in camelCase". For example, to inject the ``foo_package`` package defined earlier:: diff --git a/workflow.rst b/workflow.rst index 5854c6fa8ca..5f5d927bbb5 100644 --- a/workflow.rst +++ b/workflow.rst @@ -332,7 +332,7 @@ injecting each workflow in any service or controller: **(1) Use a specific argument name** -Type-hint your construtor/method argument with ``WorkflowInterface`` and name the +Type-hint your constructor/method argument with ``WorkflowInterface`` and name the argument using this pattern: "workflow name in camelCase" + ``Workflow`` suffix. If it is a state machine type, use the ``StateMachine`` suffix.