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 a files to the list of dependencies.

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::autowireArguments() — Method in class ContainerBuilder

Creates a list of arguments using autowiring.

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

Adds a file to the list of dependencies.

$ ContainerFactory#autoRebuildProperty in class ContainerFactory
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

Basic container builder.

$ ContainerBuilder#currentServiceProperty in class ContainerBuilder
ContainerFactoryClass in namespace Nette\DI

DI container generator.

$ ContainerFactory#classProperty in class ContainerFactory
$ ContainerFactory#configProperty in class ContainerFactory
$ ContainerFactory#configFilesProperty in class ContainerFactory
ContainerFactory::create() — Method in class ContainerFactory
ContainerFactory::createCompiler() — Method in class ContainerFactory
ContainerFactory::createLoader() — Method in class ContainerFactory
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.

D

IniAdapter::dump() — Method in class IniAdapter

Generates configuration string.

NeonAdapter::dump() — Method in class NeonAdapter

Generates configuration string.

PhpAdapter::dump() — Method in class PhpAdapter

Generates configuration string.

IAdapter::dump() — Method in class IAdapter

Generates configuration string.

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

Container::expand() — Method in class Container

Expands %placeholders%.

ContainerBuilder::expand() — Method in class ContainerBuilder

Expands %placeholders% in strings.

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.

F

Compiler::filterArguments() — Method in class Compiler

Removes ... and process constants recursively.

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

Formats PHP code for class instantiating, function calling or property setting in PHP.

ContainerBuilder::formatPhp() — Method in class ContainerBuilder

Formats PHP statement.

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::getDependencies() — Method in class Compiler

Returns the unique list of dependent files.

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::getDependencies() — Method in class ContainerBuilder

Returns the list of dependent files.

ContainerBuilder::generateClasses() — Method in class ContainerBuilder

Generates PHP classes. First class is the container.

ContainerBuilder::getServiceName() — Method in class ContainerBuilder

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

ContainerFactory::generateCode() — Method in class ContainerFactory
ContainerFactory::generateConfig() — Method in class ContainerFactory
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.

PhpReflection::getDeclaringClass() — Method in class PhpReflection

Returns declaring class or trait.

PhpReflection::getParameterType() — Method in class PhpReflection
PhpReflection::getReturnType() — Method in class PhpReflection
ServiceDefinition::getClass() — 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::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?

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
ServiceDefinition::isShared() — Method in class ServiceDefinition

L

Compiler::loadConfig() — Method in class Compiler

Adds new configuration from file.

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 file.

NeonAdapter::load() — Method in class NeonAdapter

Reads configuration from file.

PhpAdapter::load() — Method in class PhpAdapter

Reads configuration from 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

O

$ ContainerFactory#onCompileProperty in class ContainerFactory

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

Parses section 'services' from (unexpanded) configuration file.

Compiler::parseService() — Method in class Compiler

Parses single service from configuration file.

CompilerExtension::prefix() — Method in class CompilerExtension

Prepend extension name to identifier or service name.

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, $classes and normalizes class names.

$ ContainerFactory#parentClassProperty in class ContainerFactory
PhpExtensionClass in namespace Nette\DI\Extensions

PHP directives definition.

PhpReflectionClass in namespace Nette\DI

PHP reflection helpers.

PhpReflection::parseAnnotation() — Method in class PhpReflection

Returns an annotation value.

PhpReflection::parseUseStatemenets() — 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
CompilerExtension::setCompiler() — Method in class CompilerExtension
CompilerExtension::setConfig() — Method in class CompilerExtension
NeonAdapter::statementToEntity() — Method in class NeonAdapter
Loader::save() — Method in class Loader

Save configuration to file.

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

Service creation exception.

ServiceDefinitionClass in namespace Nette\DI

Definition used by ContainerBuilder.

ServiceDefinition::setClass() — 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::setShared() — Method in class ServiceDefinition
ServiceDefinition::setInject() — 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.

$ ContainerFactory#tempDirectoryProperty in class ContainerFactory

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
ContainerFactory::__construct() — Method in class ContainerFactory
ContainerLoader::__construct() — Method in class ContainerLoader
DIExtension::__construct() — Method in class DIExtension
Statement::__construct() — Method in class Statement