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

Interface IContainer

Direct known implementers

Nette\DI\Container
Namespace: Nette\DI
Deprecated
Located at DI/IContainer.php
Methods summary
public
# addService( string $name, mixed $service )

Adds the service to the container.

Adds the service to the container.

Parameters

$name
string
$service
mixed
object, class name or callback
public mixed
# getService( string $name )

Gets the service object.

Gets the service object.

Parameters

$name
string

Returns

mixed
public
# removeService( string $name )

Removes the service from the container.

Removes the service from the container.

Parameters

$name
string
public boolean
# hasService( $name )

Does the service exist?

Does the service exist?

Returns

boolean
Nette 2.0 API documentation generated by ApiGen 2.8.0