Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Container
  • ContainerBuilder
  • ServiceDefinition
  • Statement

Interfaces

  • IContainer

Exceptions

  • MissingServiceException
  • ServiceCreationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 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: 
Nette 2.0 API documentation generated by ApiGen 2.8.0