Permalink
Browse files

Merge branch 'hotfix/2407' into develop

Forward port #2407
  • Loading branch information...
2 parents 22a22d2 + 88d91fa commit 5d9144fea146c18fa49dc600556072bf1a9a709d @weierophinney weierophinney committed Sep 25, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 library/Zend/ServiceManager/ServiceLocatorInterface.php
@@ -10,8 +10,28 @@
namespace Zend\ServiceManager;
+/**
+ * Service locator interface
+ *
+ * @category Zend
+ * @package Zend_ServiceManager
+ */
interface ServiceLocatorInterface
{
+ /**
+ * Retrieve a registered instance
+ *
+ * @param string $name
+ * @throws Exception\ServiceNotFoundException
+ * @return object|array
+ */
public function get($name);
+
+ /**
+ * Check for a registered instance
+ *
+ * @param string|array $name
+ * @return bool
+ */
public function has($name);
}

0 comments on commit 5d9144f

Please sign in to comment.