Packages

  • 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
  • PHP

Classes

  • NDIContainer
  • NDIContainerBuilder
  • NDIHelpers
  • NDIServiceDefinition
  • NDIStatement

Interfaces

  • IDIContainer

Exceptions

  • NMissingServiceException
  • NServiceCreationException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class NDIHelpers

The DI helpers.

Final
Package: 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

InvalidArgumentException
public static mixed
# escape( mixed $value )

Expand counterpart.

Expand counterpart.

Parameters

$value
mixed

Returns

mixed
public static array
# autowireArguments( ReflectionFunctionAbstract $method, array $arguments, $container )

Generates list of arguments using autowiring.

Generates list of arguments using autowiring.

Parameters

$method
NFunctionReflection|NMethodReflection
$arguments
$container

Returns

array
Nette Framework 2.0.12 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.8.0