Turns public and "container.reversible" services back to their ids.
- author Nicolas Grekas
CloneableFinalInstantiable
| Methods |
| public __construct(Symfony |
| public getId(object $service) : ?string Returns the id of the passed object when it exists as a service. To be reversible, services need to be either public or be tagged with "container.reversible". |
public getService(string $id) : object
|
| Properties |
| private Closure $getServiceId |
| private Psr\Container\ContainerInterface $reversibleLocator |
| private Symfony |
| private string $tagName |