mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-23 16:22:10 +01:00
Merge branch '6.4' into 7.3
* 6.4: Fix “construtor” typos across docs (constructor) Fix typo in encoders.rst (Serveral → Several)
This commit is contained in:
@@ -215,7 +215,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``::
|
||||
|
||||
|
||||
2
lock.rst
2
lock.rst
@@ -296,7 +296,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::
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ them in any service or controller:
|
||||
|
||||
**(1) Use a specific argument name**
|
||||
|
||||
Type-hint your construtor/method argument with ``RateLimiterFactoryInterface`` and name
|
||||
Type-hint your constructor/method argument with ``RateLimiterFactoryInterface`` 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``::
|
||||
|
||||
@@ -282,7 +282,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::
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ All context options available for the JSON encoder are:
|
||||
The ``CsvEncoder``
|
||||
------------------
|
||||
|
||||
The ``CsvEncoder`` encodes to and decodes from CSV. Serveral :ref:`context options <serializer-context>`
|
||||
The ``CsvEncoder`` encodes to and decodes from CSV. Several :ref:`context options <serializer-context>`
|
||||
are available to customize the behavior of the encoder:
|
||||
|
||||
``csv_delimiter`` (default: ``,``)
|
||||
|
||||
@@ -337,7 +337,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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user