Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • Compiler
  • CompilerExtension
  • Container
  • ContainerBuilder
  • ContainerFactory
  • Helpers
  • ServiceDefinition
  • Statement

Exceptions

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

Class Helpers

The DI helpers.

Namespace: Nette\DI
Author: David Grudl
Located at DI/Helpers.php
Methods summary
public static mixed
# expand( mixed $var, array $params, boolean $recursive = FALSE )

Expands %placeholders%.

Expands %placeholders%.

Parameters

$var
mixed
$params
array
$recursive
boolean

Returns

mixed

Throws

Nette\InvalidArgumentException
public static array
# autowireArguments( ReflectionFunctionAbstract $method, array $arguments, $container )

Generates list of arguments using autowiring.

Generates list of arguments using autowiring.

Parameters

$method
Nette\Reflection\GlobalFunction|Nette\Reflection\Method
$arguments
$container

Returns

array
public static array
# getInjectProperties( Nette\Reflection\ClassType $class, $container = NULL )

Generates list of properties with annotation @inject.

Generates list of properties with annotation @inject.

Returns

array
Nette 2.2 API documentation generated by ApiGen 2.8.0