Skip to content

[DI] Fix "!tagged" related upgrade/changelog notes #34180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions UPGRADE-4.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@ DependencyInjection
factory: ['@factory_service', method]
```

* Deprecated `tagged` in favor of `tagged_iterator`

Before:
```yaml
services:
App\HandlerCollection:
arguments: [!tagged my_tag]
```

After:
```yaml
services:
App\HandlerCollection:
arguments: [!tagged_iterator my_tag]
```

* Passing an instance of `Symfony\Component\DependencyInjection\Parameter` as class name to `Symfony\Component\DependencyInjection\Definition` is deprecated.

Before:
Expand Down
21 changes: 0 additions & 21 deletions UPGRADE-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,6 @@ DependencyInjection
my_service:
factory: ['@factory_service', method]
```
* Removed `tagged` in favor of `tagged_iterator`

Before:
```yaml
services:
App\Handler:
tags: ['app.handler']

App\HandlerCollection:
arguments: [!tagged app.handler]
```

After:
```yaml
services:
App\Handler:
tags: ['app.handler']

App\HandlerCollection:
arguments: [!tagged_iterator app.handler]
```

DoctrineBridge
--------------
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/DependencyInjection/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CHANGELOG
* added support for opcache.preload by generating a preloading script in the cache folder
* added support for dumping the container in one file instead of many files
* deprecated support for short factories and short configurators in Yaml
* deprecated `tagged` in favor of `tagged_iterator`
* added `tagged_iterator` alias for `tagged` which might be deprecated in a future version
* deprecated passing an instance of `Symfony\Component\DependencyInjection\Parameter` as class name to `Symfony\Component\DependencyInjection\Definition`
* added support for binding iterable and tagged services
* made singly-implemented interfaces detection be scoped by file
Expand Down