8000 minor #21766 [DI] Remove experimental status from service-locator arg… · symfony/dependency-injection@0897b79 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 0897b79

Browse files
committed
minor #21766 [DI] Remove experimental status from service-locator argument type (chalasr)
This PR was merged into the 3.3-dev branch. Discussion ---------- [DI] Remove experimental status from service-locator argument type | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony#21625 (comment), symfony/symfony#21625 (comment), #21710 | License | MIT The `service-locator` argument type is not controversial to me. We know its scope, nothing really surprising, just a map of services to be lazily loaded like `iterator` is (which is not experimental) but keyed. About its api, it's just PSR-11 restricted to objects, nothing that can't be changed safely in the future. As stated in symfony/symfony#21625 (comment), it proven its usefulness already. I think what we were looking for by flagging it experimental is just to see it in action, we've 3 opened PRs for that (#21625, #21690, #21730). This allows introducing deprecations for making use of the feature in the core, thus unlocks #21625 and #21690. Commits ------- 46dc47af11 [DI] Remove experimental status from service-locator argument type
2 parents 73131fc + ec9c919 commit 0897b79

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

Argument/ServiceLocatorArgument.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* Represents a service locator able to lazy load a given range of services.
1919
*
2020
* @author Robin Chalas <robin.chalas@gmail.com>
21-
*
22-
* @experimental in version 3.3
2321
*/
2422
class ServiceLocatorArgument implements ArgumentInterface
2523
{

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
8000
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CHANGELOG
55
-----
66

77
* [EXPERIMENTAL] added "instanceof" section for local interface-defined configs
8-
* [EXPERIMENTAL] added "service-locator" argument for lazy loading a set of identified values and services
8+
* added "service-locator" argument for lazy loading a set of identified values and services
99
* [EXPERIMENTAL] added prototype services for PSR4-based discovery and registration
1010
* added `ContainerBuilder::getReflectionClass()` for retrieving and tracking reflection class info
1111
* deprecated `ContainerBuilder::getClassResource()`, use `ContainerBuilder::getReflectionClass()` or `ContainerBuilder::addObjectResource()` instead

ServiceLocator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
/**
1919
* @author Robin Chalas <robin.chalas@gmail.com>
2020
* @author Nicolas Grekas <p@tchwork.com>
21-
*
22-
* @experimental in version 3.3
2321
*/
2422
class ServiceLocator implements PsrContainerInterface
2523
{

0 commit comments

Comments
 (0)
0