Piwik\

DI

Proxy class for using DI related methods

Methods

The class defines the following methods:

value()

Signature

  • It accepts the following parameter(s):

    • $value (mixed) —
  • It returns a DI\Definition\ValueDefinition value.

create()

See Also

  • PHPDI\create()

Signature

  • It accepts the following parameter(s):

    • $className (string) —
  • It returns a DI\Definition\Helper\CreateDefinitionHelper value.

autowire()

See Also

  • PHPDI\autowire()

Signature

  • It accepts the following parameter(s):

    • $className (string) —
  • It returns a DI\Definition\Helper\AutowireDefinitionHelper value.

factory()

See Also

  • PHPDI\factory()

Signature

  • It accepts the following parameter(s):

    • $factory (callable) —
  • It returns a DI\Definition\Helper\FactoryDefinitionHelper value.

decorate()

See Also

  • PHPDI\decorate()

Signature

  • It accepts the following parameter(s):

    • $callable (callable) —
  • It returns a DI\Definition\Helper\FactoryDefinitionHelper value.

get()

See Also

  • PHPDI\get()

Signature

  • It accepts the following parameter(s):

    • $entryName (string) —
  • It returns a DI\Definition\Reference value.

env()

See Also

  • PHPDI\env()

Signature

  • It accepts the following parameter(s):

    • $variableName (string) —

    • $defaultValue (mixed) —

  • It returns a DI\Definition\EnvironmentVariableDefinition value.

add()

See Also

  • PHPDI\add()

Signature

  • It accepts the following parameter(s):

    • $values (array|mixed) —
  • It returns a DI\Definition\ArrayDefinitionExtension value.

string()

See Also

  • PHPDI\string()

Signature

  • It accepts the following parameter(s):

    • $expression (string) —
  • It returns a DI\Definition\StringDefinition value.