Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/custom-service-listener' of https://github.com/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,28 @@ public function getRegisteredServices()
);
}

/**
* Retrieve a keyed list of all canonical names. Handy for debugging!
*
* @return array
*/
public function getCanonicalNames()
{
return $this->canonicalNames;
}

/**
* Allows to override the canonical names lookup map with predefined
* values.
*
* @return array $canonicalNames
* @return ServiceManager
*/
public function setCanonicalNames($canonicalNames)
{
$this->canonicalNames = $canonicalNames;
}

/**
* Attempt to retrieve an instance via a peering manager
*
Expand Down

0 comments on commit 0f89697

Please sign in to comment.