Packages

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

Classes

  • DIContainer
  • DIContainerBuilder
  • ServiceBuilder

Interfaces

  • IDIContainer
  • IServiceBuilder

Exceptions

  • AmbiguousServiceException
  • MissingServiceException
  • Overview
  • Package
  • Class
  • Tree

Interface IDIContainer

The dependency injection container.

Direct known implementers

DIContainer
Package: Nette\DI
Author: David Grudl
Located at DI/IContainer.php
Methods summary
public
# addService( string $name, mixed $service )

Adds the specified service or service factory to the container.

Adds the specified service or service factory to the container.

Parameters

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

Gets the service object of the specified type.

Gets the service object of the specified type.

Parameters

$name
string

Returns

mixed
public
# removeService( string $name )

Removes the specified service type from the container.

Removes the specified service type from the container.

Parameters

$name
string
public boolean
# hasService( $name )

Does the service exist?

Does the service exist?

Returns

boolean
Nette Framework 2.0beta1 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0