1
1
<?php
2
-
3
2
/**
4
- * @link http ://github.com/zendframework/zend-servicemanager for the canonical source repository
5
- * @copyright Copyright (c) 2005- 2018 Zend Technologies USA Inc. (http://www.zend.com)
6
- * @license http ://framework.zend. com/license/new-bsd New BSD License
3
+ * @see https ://github.com/zendframework/zend-servicemanager for the canonical source repository
4
+ * @copyright Copyright (c) 2018 Zend Technologies USA Inc. (http://www.zend.com)
5
+ * @license https ://github. com/zendframework/zend-servicemanager/blob/master/LICENSE.md New BSD License
7
6
*/
8
7
9
8
namespace Zend \ServiceManager ;
10
9
11
10
use Interop \Container \ContainerInterface ;
12
- use Psr \Container \ContainerExceptionInterface ;
13
11
use Psr \Container \ContainerInterface as PsrContainerInterface ;
14
- use Psr \Container \NotFoundExceptionInterface ;
15
12
16
13
/**
17
14
* @internal for use in abstract plugin manager
@@ -29,30 +26,15 @@ public function __construct(PsrContainerInterface $container)
29
26
}
30
27
31
28
/**
32
- * Finds an entry of the container by its identifier and returns it.
33
- *
34
- * @param string $id Identifier of the entry to look for.
35
- *
36
- * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
37
- * @throws ContainerExceptionInterface Error while retrieving the entry.
38
- *
39
- * @return mixed Entry.
29
+ * {@inheritdoc}
40
30
*/
41
31
public function get ($ id )
42
32
{
43
33
return $ this ->container ->get ($ id );
44
34
}
45
35
46
36
/**
47
- * Returns true if the container can return an entry for the given identifier.
48
- * Returns false otherwise.
49
- *
50
- * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
51
- * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
52
- *
53
- * @param string $id Identifier of the entry to look for.
54
- *
55
- * @return bool
37
+ * {@inheritdoc}
56
38
*/
57
39
public function has ($ id )
58
40
{
0 commit comments