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: */
7:
8: namespace Nette\DI;
9:
10: use Nette;
11:
12:
13: /**
14: * @deprecated
15: */
16: interface IContainer
17: {
18:
19: /**
20: * Adds the service to the container.
21: * @param string
22: * @param mixed object, class name or callback
23: * @return void
24: */
25: function addService($name, $service);
26:
27: /**
28: * Gets the service object.
29: * @param string
30: * @return mixed
31: */
32: function getService($name);
33:
34: /**
35: * Removes the service from the container.
36: * @param string
37: * @return void
38: */
39: function removeService($name);
40:
41: /**
42: * Does the service exist?
43: * @return bool
44: */
45: function hasService($name);
46:
47: }
48: