1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: * @package Nette\DI
7: */
8:
9:
10:
11: /**
12: * @deprecated
13: * @package Nette\DI
14: */
15: interface IDIContainer
16: {
17:
18: /**
19: * Adds the service to the container.
20: * @param string
21: * @param mixed object, class name or callback
22: * @return void
23: */
24: function addService($name, $service);
25:
26: /**
27: * Gets the service object.
28: * @param string
29: * @return mixed
30: */
31: function getService($name);
32:
33: /**
34: * Removes the service from the container.
35: * @param string
36: * @return void
37: */
38: function removeService($name);
39:
40: /**
41: * Does the service exist?
42: * @return bool
43: */
44: function hasService($name);
45:
46: }
47: