Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
39 | PointedEar | 1 | <?php |
2 | /** |
||
3 | * Zend Framework (http://framework.zend.com/) |
||
4 | * |
||
5 | * @link http://github.com/zendframework/zf2 for the canonical source repository |
||
6 | * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) |
||
7 | * @license http://framework.zend.com/license/new-bsd New BSD License |
||
8 | */ |
||
9 | |||
10 | namespace Zend\ServiceManager; |
||
11 | |||
12 | /** |
||
13 | * Service locator interface |
||
14 | */ |
||
15 | interface ServiceLocatorInterface |
||
16 | { |
||
17 | /** |
||
18 | * Retrieve a registered instance |
||
19 | * |
||
20 | * @param string $name |
||
21 | * @throws Exception\ServiceNotFoundException |
||
22 | * @return object|array |
||
23 | */ |
||
24 | public function get($name); |
||
25 | |||
26 | /** |
||
27 | * Check for a registered instance |
||
28 | * |
||
29 | * @param string|array $name |
||
30 | * @return bool |
||
31 | */ |
||
32 | public function has($name); |
||
33 | } |