A

Compiler::addExtension() — Method in class Compiler

Add custom configurator extension.

Compiler::addConfig() — Method in class Compiler

Adds new configuration.

Compiler::addDependencies() — Method in class Compiler

Adds dependencies to the list.

CompilerExtension::afterCompile() — Method in class CompilerExtension

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

Loader::addAdapter() — Method in class Loader

Registers adapter for given file extension.

Container::addService() — Method in class Container

Adds the service to the container.

ContainerBuilder::addDefinition() — Method in class ContainerBuilder

Adds new service definition.

ContainerBuilder::addAlias() — Method in class ContainerBuilder
ContainerBuilder::addExcludedClasses() — Method in class ContainerBuilder
ContainerBuilder::addDependency() — Method in class ContainerBuilder

Adds item to the list of dependencies.

ContainerBuilder::autowireArguments() — Method in class ContainerBuilder

Creates a list of arguments using autowiring.

DependencyChecker::add() — Method in class DependencyChecker

Adds dependencies to the list.

ConstantsExtension::afterCompile() — Method in class ConstantsExtension

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

DIExtension::afterCompile() — Method in class DIExtension

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

DecoratorExtension::addSetups() — Method in class DecoratorExtension
DecoratorExtension::addTags() — Method in class DecoratorExtension
PhpExtension::afterCompile() — Method in class PhpExtension

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

Helpers::autowireArguments() — Method in class Helpers

Generates list of arguments using autowiring.

ServiceDefinition::addSetup() — Method in class ServiceDefinition
ServiceDefinition::addTag() — Method in class ServiceDefinition
$ Statement#argumentsProperty in class Statement

B

CompilerExtension::beforeCompile() — Method in class CompilerExtension

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

DecoratorExtension::beforeCompile() — Method in class DecoratorExtension

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

InjectExtension::beforeCompile() — Method in class InjectExtension

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

C

ContainerPanelClass in namespace Nette\Bridges\DITracy

Dependency injection container panel for Debugger Bar.

$ ContainerPanel#compilationTimeProperty in class ContainerPanel
CompilerClass in namespace Nette\DI

DI container compiler.

Compiler::compile() — Method in class Compiler
CompilerExtensionClass in namespace Nette\DI

Configurator compiling extension.

$ CompilerExtension#compilerProperty in class CompilerExtension
$ CompilerExtension#configProperty in class CompilerExtension
ContainerClass in namespace Nette\DI

The dependency injection container default implementation.

Container::createService() — Method in class Container

Creates new instance of the service.

Container::createInstance() — Method in class Container

Creates new instance using autowiring.

Container::callInjects() — Method in class Container

Calls all methods starting with with "inject" using autowiring.

Container::callMethod() — Method in class Container

Calls method using autowiring.

ContainerBuilderClass in namespace Nette\DI

Container builder.

ContainerBuilder::complete() — Method in class ContainerBuilder
ContainerBuilder::completeStatement() — Method in class ContainerBuilder
ContainerLoaderClass in namespace Nette\DI

DI container loader.

ConstantsExtensionClass in namespace Nette\DI\Extensions

Constant definitions.

InjectExtension::callInjects() — Method in class InjectExtension

Calls all methods starting with with "inject" using autowiring.

$ ServiceDefinition#classProperty in class ServiceDefinition

D

IniAdapter::dump() — Method in class IniAdapter

Generates configuration in INI format.

NeonAdapter::dump() — Method in class NeonAdapter

Generates configuration in NEON format.

PhpAdapter::dump() — Method in class PhpAdapter

Generates configuration in PHP format.

IAdapter::dump() — Method in class IAdapter

Generates configuration string.

DependencyCheckerClass in namespace Nette\DI

Cache dependencies checker.

DIExtensionClass in namespace Nette\DI\Extensions

DI extension.

$ DIExtension#defaultsProperty in class DIExtension
DecoratorExtensionClass in namespace Nette\DI\Extensions

Decorators for services.

$ DecoratorExtension#defaultsProperty in class DecoratorExtension

E

Compiler::exportDependencies() — Method in class Compiler

Exports dependencies.

Container::expand() — Method in class Container

Expands %placeholders%.

ContainerBuilder::expand() — Method in class ContainerBuilder

Expands %placeholders% in strings.

DependencyChecker::export() — Method in class DependencyChecker

Exports dependencies.

ExtensionsExtensionClass in namespace Nette\DI\Extensions

Enables registration of other extensions in $config file

Helpers::expand() — Method in class Helpers

Expands %placeholders%.

PhpReflection::expandClassName() — Method in class PhpReflection

Expands class name into full name.

$ Statement#entityProperty in class Statement

F

Compiler::filterArguments() — Method in class Compiler
Container::findByType() — Method in class Container

Gets the service names of the specified type.

Container::findByTag() — Method in class Container

Gets the service names of the specified tag.

ContainerBuilder::findByType() — Method in class ContainerBuilder

Gets the service names and definitions of the specified type.

ContainerBuilder::findByTag() — Method in class ContainerBuilder

Gets the service objects of the specified tag.

ContainerBuilder::formatStatement() — Method in class ContainerBuilder
ContainerBuilder::formatPhp() — Method in class ContainerBuilder
Helpers::filterArguments() — Method in class Helpers

Removes ... and process constants recursively.

PhpGenerator::formatPhp() — Method in class PhpGenerator

Formats PHP statement.

$ ServiceDefinition#factoryProperty in class ServiceDefinition

G

ContainerPanel::getTab() — Method in class ContainerPanel

Renders tab.

ContainerPanel::getPanel() — Method in class ContainerPanel

Renders panel.

Compiler::getExtensions() — Method in class Compiler
Compiler::getContainerBuilder() — Method in class Compiler
Compiler::getConfig() — Method in class Compiler

Returns configuration.

Compiler::generateCode() — Method in class Compiler
CompilerExtension::getConfig() — Method in class CompilerExtension

Returns extension configuration.

CompilerExtension::getContainerBuilder() — Method in class CompilerExtension
Loader::getDependencies() — Method in class Loader

Returns configuration files.

Container::getParameters() — Method in class Container
Container::getService() — Method in class Container

Gets the service object by name.

Container::getServiceType() — Method in class Container

Gets the service type by name.

Container::getByType() — Method in class Container

Resolves service by type.

Container::getMethodName() — Method in class Container
ContainerBuilder::getDefinition() — Method in class ContainerBuilder

Gets the service definition.

ContainerBuilder::getDefinitions() — Method in class ContainerBuilder

Gets all service definitions.

ContainerBuilder::getAliases() — Method in class ContainerBuilder

Gets all service aliases.

ContainerBuilder::getClassName() — Method in class ContainerBuilder
ContainerBuilder::getByType() — Method in class ContainerBuilder

Resolves service name by type.

ContainerBuilder::getDefinitionByType() — Method in class ContainerBuilder

Gets the service definition of the specified type.

ContainerBuilder::getClassList() — Method in class ContainerBuilder
ContainerBuilder::getDependencies() — Method in class ContainerBuilder

Returns the list of dependencies.

ContainerBuilder::getServiceName() — Method in class ContainerBuilder

Converts @service or @\Class -> service name and checks its existence.

ContainerBuilder::generateClasses() — Method in class ContainerBuilder
ContainerLoader::getClassName() — Method in class ContainerLoader
ContainerLoader::generate() — Method in class ContainerLoader
InjectExtension::getInjectMethods() — Method in class InjectExtension

Generates list of inject methods.

InjectExtension::getInjectProperties() — Method in class InjectExtension

Generates list of properties with annotation @inject.

Helpers::getReturnType() — Method in class Helpers
PhpGenerator::generate() — Method in class PhpGenerator

Generates PHP classes. First class is the container.

PhpReflection::getDeclaringClass() — Method in class PhpReflection

Returns declaring class or trait.

PhpReflection::getParameterType() — Method in class PhpReflection
PhpReflection::getReturnType() — Method in class PhpReflection
PhpReflection::getClassTree() — Method in class PhpReflection

Returns class and all its descendants.

PhpReflection::getUseStatements() — Method in class PhpReflection
ServiceDefinition::getClass() — Method in class ServiceDefinition
ServiceDefinition::getType() — Method in class ServiceDefinition
ServiceDefinition::getFactory() — Method in class ServiceDefinition
ServiceDefinition::getEntity() — Method in class ServiceDefinition
ServiceDefinition::getSetup() — Method in class ServiceDefinition
ServiceDefinition::getParameters() — Method in class ServiceDefinition
ServiceDefinition::getTags() — Method in class ServiceDefinition
ServiceDefinition::getTag() — Method in class ServiceDefinition
ServiceDefinition::getAutowired() — Method in class ServiceDefinition
ServiceDefinition::getImplement() — Method in class ServiceDefinition
ServiceDefinition::getImplementMode() — Method in class ServiceDefinition
ServiceDefinition::getImplementType() — Method in class ServiceDefinition
ServiceDefinition::getInject() — Method in class ServiceDefinition
Statement::getEntity() — Method in class Statement

H

HelpersClass in namespace Nette\DI\Config

Configuration helpers.

Container::hasService() — Method in class Container

Does the service exist?

ContainerBuilder::hasDefinition() — Method in class ContainerBuilder

Does the service definition or alias exist?

HelpersClass in namespace Nette\DI

The DI helpers.

I

IniAdapterClass in namespace Nette\DI\Config\Adapters

Reading and generating INI files.

Helpers::isOverwriting() — Method in class Helpers
Helpers::isInheriting() — Method in class Helpers
IAdapterClass in namespace Nette\DI\Config

Adapter for reading and writing configuration files.

Container::isCreated() — Method in class Container

Is the service created?

DependencyChecker::isExpired() — Method in class DependencyChecker

Are dependencies expired?

InjectExtensionClass in namespace Nette\DI\Extensions

Calls inject methods and fills @inject properties.

PhpReflection::isBuiltinType() — Method in class PhpReflection
ServiceDefinition::isAutowired() — Method in class ServiceDefinition
ServiceDefinition::isDynamic() — Method in class ServiceDefinition

L

Compiler::loadConfig() — Method in class Compiler

Adds new configuration from file.

Compiler::loadDefinitions() — Method in class Compiler

Adds service definitions from configuration.

Compiler::loadDefinition() — Method in class Compiler

Parses single service definition from configuration.

CompilerExtension::loadFromFile() — Method in class CompilerExtension

Reads configuration from file.

CompilerExtension::loadConfiguration() — Method in class CompilerExtension

Processes configuration data. Intended to be overridden by descendant.

IniAdapter::load() — Method in class IniAdapter

Reads configuration from INI file.

NeonAdapter::load() — Method in class NeonAdapter

Reads configuration from NEON file.

PhpAdapter::load() — Method in class PhpAdapter

Reads configuration from PHP file.

IAdapter::load() — Method in class IAdapter

Reads configuration from file.

LoaderClass in namespace Nette\DI\Config

Configuration file loader.

Loader::load() — Method in class Loader

Reads configuration from file.

ContainerBuilder::literal() — Method in class ContainerBuilder
ContainerLoader::load() — Method in class ContainerLoader
DIExtension::loadConfiguration() — Method in class DIExtension

Processes configuration data. Intended to be overridden by descendant.

ExtensionsExtension::loadConfiguration() — Method in class ExtensionsExtension

Processes configuration data. Intended to be overridden by descendant.

M

Helpers::merge() — Method in class Helpers

Merges configurations. Left has higher priority than right one.

$ Container#metaProperty in class Container
MissingServiceExceptionClass in namespace Nette\DI

Service not found exception.

N

$ CompilerExtension#nameProperty in class CompilerExtension
NeonAdapterClass in namespace Nette\DI\Config\Adapters

Reading and generating NEON files.

ContainerBuilder::normalizeEntity() — Method in class ContainerBuilder
Helpers::normalizeClass() — Method in class Helpers

P

Compiler::processParameters() — Method in class Compiler
Compiler::processExtensions() — Method in class Compiler
Compiler::processServices() — Method in class Compiler
Compiler::parseServices() — Method in class Compiler
Compiler::parseService() — Method in class Compiler
CompilerExtension::prefix() — Method in class CompilerExtension

Prepend extension name to identifier or service name.

IniAdapter::process() — Method in class IniAdapter
NeonAdapter::process() — Method in class NeonAdapter
PhpAdapterClass in namespace Nette\DI\Config\Adapters

Reading and generating PHP files.

$ Container#parametersProperty in class Container
$ ContainerBuilder#parametersProperty in class ContainerBuilder
ContainerBuilder::prepareClassList() — Method in class ContainerBuilder

Generates $dependencies, $classList and normalizes class names.

PhpExtensionClass in namespace Nette\DI\Extensions

PHP directives definition.

Helpers::prefixServiceName() — Method in class Helpers

Replaces @extension with real extension name in service definition.

Helpers::parseAnnotation() — Method in class Helpers

Returns an annotation value.

PhpGeneratorClass in namespace Nette\DI

Container PHP code generator.

PhpReflectionClass in namespace Nette\DI

PHP reflection helpers.

PhpReflection::parseAnnotation() — Method in class PhpReflection

Returns an annotation value.

PhpReflection::parseUseStatements() — Method in class PhpReflection

Parses PHP code.

$ ServiceDefinition#parametersProperty in class ServiceDefinition

R

Container::removeService() — Method in class Container

Removes the service from the container.

ContainerBuilder::removeDefinition() — Method in class ContainerBuilder

Removes the specified service definition.

ContainerBuilder::removeAlias() — Method in class ContainerBuilder

Removes the specified alias.

S

Compiler::setClassName() — Method in class Compiler
Compiler::setDynamicParameterNames() — Method in class Compiler

Sets the names of dynamic parameters.

CompilerExtension::setCompiler() — Method in class CompilerExtension
CompilerExtension::setConfig() — Method in class CompilerExtension
Loader::save() — Method in class Loader

Save configuration to file.

ContainerBuilder::setClassName() — Method in class ContainerBuilder
ServiceCreationExceptionClass in namespace Nette\DI

Service creation exception.

ServiceCreationException::setMessage() — Method in class ServiceCreationException
ServiceDefinitionClass in namespace Nette\DI

Definition used by ContainerBuilder.

$ ServiceDefinition#setupProperty in class ServiceDefinition
ServiceDefinition::setClass() — Method in class ServiceDefinition
ServiceDefinition::setType() — Method in class ServiceDefinition
ServiceDefinition::setFactory() — Method in class ServiceDefinition
ServiceDefinition::setArguments() — Method in class ServiceDefinition
ServiceDefinition::setSetup() — Method in class ServiceDefinition
ServiceDefinition::setParameters() — Method in class ServiceDefinition
ServiceDefinition::setTags() — Method in class ServiceDefinition
ServiceDefinition::setAutowired() — Method in class ServiceDefinition
ServiceDefinition::setDynamic() — Method in class ServiceDefinition
ServiceDefinition::setImplement() — Method in class ServiceDefinition
ServiceDefinition::setImplementMode() — Method in class ServiceDefinition
ServiceDefinition::setImplementType() — Method in class ServiceDefinition
ServiceDefinition::setInject() — Method in class ServiceDefinition
ServiceDefinition::setNotifier() — Method in class ServiceDefinition
StatementClass in namespace Nette\DI

Assignment or calling statement.

Statement::setEntity() — Method in class Statement

T

Helpers::takeParent() — Method in class Helpers

Finds out and removes information about the parent.

V

CompilerExtension::validateConfig() — Method in class CompilerExtension

Checks whether $config contains only $expected items and returns combined array.

_

ContainerPanel::__construct() — Method in class ContainerPanel
Compiler::__construct() — Method in class Compiler
Container::__construct() — Method in class Container
Container::__get() — Method in class Container
Container::__set() — Method in class Container
Container::__isset() — Method in class Container
Container::__unset() — Method in class Container
ContainerLoader::__construct() — Method in class ContainerLoader
DIExtension::__construct() — Method in class DIExtension
PhpGenerator::__construct() — Method in class PhpGenerator
ServiceDefinition::__clone() — Method in class ServiceDefinition
Statement::__construct() — Method in class Statement