Skip to content

Commit 804aa55

Browse files
committed
Minor tweaks
1 parent 77f41f0 commit 804aa55

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/options_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ Deprecating the Option
724724

725725
The signature of the ``setDeprecated()`` method changed from
726726
``setDeprecated(string $option, ?string $message)`` to
727-
``setDeprecated(string $option, string $package, string $version, ?string $message)``
727+
``setDeprecated(string $option, string $package, string $version, $message)``
728728
in Symfony 5.1.
729729

730730
Once an option is outdated or you decided not to maintain it anymore, you can

service_container/alias_private.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ or you decided not to maintain it anymore), you can deprecate its definition:
177177
alias: '@App\Mail\PhpMailer'
178178
179179
# this outputs the following generic deprecation message:
180-
# Since acme/package 1.2: The "app.mailer" service is deprecated. You should stop using it, as it will be removed in the future
180+
# Since acme/package 1.2: The "app.mailer" service alias is deprecated. You should stop using it, as it will be removed in the future
181181
deprecated:
182182
package: 'acme/package'
183183
version: '1.2'
184184
185-
# you can also define a custom deprecation message (%sevice_id%/%alias_id% placeholder is available)
185+
# you can also define a custom deprecation message (%alias_id% placeholder is available)
186186
deprecated:
187187
package: 'acme/package'
188188
version: '1.2'
@@ -198,10 +198,10 @@ or you decided not to maintain it anymore), you can deprecate its definition:
198198
<services>
199199
<service id="app.mailer" alias="App\Mail\PhpMailer">
200200
<!-- this outputs the following generic deprecation message:
201-
Since acme/package 1.2: The "app.mailer" service is deprecated. You should stop using it, as it will be removed in the future -->
201+
Since acme/package 1.2: The "app.mailer" service alias is deprecated. You should stop using it, as it will be removed in the future -->
202202
<deprecated package="acme/package" version="1.2"/>
203203
204-
<!-- you can also define a custom deprecation message (%sevice_id%/%alias_id% placeholder is available) -->
204+
<!-- you can also define a custom deprecation message (%alias_id% placeholder is available) -->
205205
<deprecated package="acme/package" version="1.2">
206206
The "%alias_id%" service alias is deprecated. Don't use it anymore.
207207
</deprecated>
@@ -215,10 +215,10 @@ or you decided not to maintain it anymore), you can deprecate its definition:
215215
->setAlias('app.mailer', 'App\Mail\PhpMailer')
216216
217217
// this outputs the following generic deprecation message:
218-
// Since acme/package 1.2: The "app.mailer" service is deprecated. You should stop using it, as it will be removed in the future
218+
// Since acme/package 1.2: The "app.mailer" service alias is deprecated. You should stop using it, as it will be removed in the future
219219
->setDeprecated('acme/package', '1.2')
220220
221-
// you can also define a custom deprecation message (%sevice_id%/%alias_id% placeholder is available)
221+
// you can also define a custom deprecation message (%alias_id% placeholder is available)
222222
->setDeprecated(
223223
'acme/package',
224224
'1.2',

0 commit comments

Comments
 (0)