Documentation

ReverseContainer
in package

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

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

$getServiceId  : mixed
$reversibleLocator  : mixed
$serviceContainer  : mixed
$tagName  : mixed
__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

Search results