Documentation

ReverseContainer
in package

FinalYes

Turns public and "container.reversible" services back to their ids.

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

Properties

$getServiceId  : Closure
$reversibleLocator  : mixed
$serviceContainer  : mixed
$tagName  : string

Methods

__construct()  : mixed
getId()  : string|null
Returns the id of the passed object when it exists as a service.
getService()  : object

Properties

Methods

getId()

Returns the id of the passed object when it exists as a service.

public getId(object $service) : string|null

To be reversible, services need to be either public or be tagged with "container.reversible".

Parameters
$service : object
Return values
string|null

        
On this page

Search results