Packages

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

Classes

  • DIContainer
  • DIContainerBuilder
  • DIHelpers
  • DIServiceDefinition
  • DIStatement

Interfaces

  • IDIContainer

Exceptions

  • MissingServiceException
  • ServiceCreationException
  • 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 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 Framework 2.0beta2 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0