Namespaces

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

Classes

  • Compiler
  • CompilerExtension
  • Container
  • ContainerBuilder
  • ServiceDefinition
  • Statement

Exceptions

  • MissingServiceException
  • ServiceCreationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class ServiceDefinition

Definition used by ContainerBuilder.

Nette\Object
Extended by Nette\DI\ServiceDefinition
Namespace: Nette\DI
Author: David Grudl
Located at DI/ServiceDefinition.php
Methods summary
public
# setClass( $class, array $args = array() )
public
# setFactory( $factory, array $args = array() )
public
# setArguments( array $args = array() )
public
# addSetup( $target, array $args = array() )
public
# setParameters( array $params )
public
# addTag( $tag, $attrs = TRUE )
public
# setAutowired( $on )
public
# setShared( $on )

Deprecated

public
# setInject( $on )
public
# setImplement( $implement )
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public string $class
#

class or interface name

class or interface name

public Nette\DI\Statement $factory
#
public Nette\DI\Statement[] $setup array()
#
public array $parameters array()
#
public array $tags array()
#
public mixed $autowired TRUE
#
public boolean $shared TRUE
#
public boolean $inject FALSE
#
public string $implement
#

interface name

interface name

public $implementType
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.1 API documentation generated by ApiGen 2.8.0