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

Commit

Permalink
Allows to retrieve and seed the internal canonical names lookup map.
Browse files Browse the repository at this point in the history
  • Loading branch information
coss committed Jul 24, 2012
1 parent 8225479 commit 266da8e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions library/Zend/ServiceManager/ServiceManager.php
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 getCanonicalNames($canonicalNames)
{
$this->canonicalNames = $canonicalNames;
}

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

0 comments on commit 266da8e

Please sign in to comment.