Index
A
- $ ContainerFactory#autowireExcludedClasses — Property in class ContainerFactory
- ContainerFactory::addStaticParameters() — Method in class ContainerFactory
Adds new static parameters.
- ContainerFactory::addDynamicParameters() — Method in class ContainerFactory
Adds new dynamic parameters.
- ContainerFactory::addServices() — Method in class ContainerFactory
Add instances of services.
- ContainerFactory::addConfig() — Method in class ContainerFactory
Adds configuration file.
- Autowiring — Class in namespace Nette\DI
- Autowiring.
- Autowiring::addExcludedClasses() — Method in class Autowiring
- 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.
- Compiler::addExportedTag() — Method in class Compiler
- Compiler::addExportedType() — Method in class Compiler
- CompilerExtension::afterCompile() — Method in class CompilerExtension
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.
- Adapter — Class in namespace Nette\DI\Config
Adapter for reading and writing configuration files.
- Loader::addAdapter() — Method in class Loader
Registers adapter for given file extension.
- $ Container#aliases — Property in class Container
- Container::addService() — Method in class Container
Adds the service or its factory to the container.
- ContainerBuilder::addDefinition() — Method in class ContainerBuilder
Adds new service definition.
- ContainerBuilder::addAccessorDefinition() — Method in class ContainerBuilder
- ContainerBuilder::addFactoryDefinition() — Method in class ContainerBuilder
- ContainerBuilder::addLocatorDefinition() — Method in class ContainerBuilder
- ContainerBuilder::addImportedDefinition() — Method in class ContainerBuilder
- 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.
- AccessorDefinition — Class in namespace Nette\DI\Definitions
Accessor definition.
- Definition::addTag() — Method in class Definition
- ServiceDefinition::addSetup() — Method in class ServiceDefinition
- $ Statement#arguments — Property in class Statement
- DependencyChecker::add() — Method in class DependencyChecker
Adds dependencies to the list.
- DecoratorExtension::addSetups() — Method in class DecoratorExtension
- DecoratorExtension::addTags() — Method in class DecoratorExtension
- ParametersExtension::afterCompile() — Method in class ParametersExtension
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.
- PhpGenerator::addInitialization() — Method in class PhpGenerator
- Resolver::addDependency() — Method in class Resolver
Adds item to the list of dependencies.
- Resolver::autowireArguments() — Method in class Resolver
Add missing arguments using autowiring.
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.
- SearchExtension::beforeCompile() — Method in class SearchExtension
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
C
- ContainerFactory — Class in namespace Nette\Bootstrap
Initial system DI container generator.
- $ ContainerFactory#configs — Property in class ContainerFactory
- ContainerFactory::createContainer() — Method in class ContainerFactory
Returns system DI container.
- ContainerFactory::createLoader() — Method in class ContainerFactory
- ContainerPanel — Class in namespace Nette\Bridges\DITracy
Dependency injection container panel for Debugger Bar.
- $ ContainerPanel#compilationTime — Property in class ContainerPanel
- Compiler — Class in namespace Nette\DI
DI container compiler.
- Compiler::compile() — Method in class Compiler
- Compiler::createPhpGenerator() — Method in class Compiler
- CompilerExtension — Class in namespace Nette\DI
Configurator compiling extension.
- $ CompilerExtension#compiler — Property in class CompilerExtension
- $ CompilerExtension#config — Property in class CompilerExtension
- CompilerExtension::createLoader() — Method in class CompilerExtension
- Container — Class 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 an instance of the class and passes dependencies to the constructor using autowiring.
- Container::callInjects() — Method in class Container
Calls all methods starting with 'inject' and passes dependencies to them via autowiring.
- Container::callMethod() — Method in class Container
Calls the method and passes dependencies to it via autowiring.
- ContainerBuilder — Class in namespace Nette\DI
Container builder.
- ContainerBuilder::complete() — Method in class ContainerBuilder
- ContainerLoader — Class in namespace Nette\DI
DI container loader.
- AccessorDefinition::complete() — Method in class AccessorDefinition
- Definition::complete() — Method in class Definition
- FactoryDefinition::complete() — Method in class FactoryDefinition
- FactoryDefinition::convertArguments() — Method in class FactoryDefinition
- ImportedDefinition::complete() — Method in class ImportedDefinition
- LocatorDefinition::complete() — Method in class LocatorDefinition
- ServiceDefinition::complete() — Method in class ServiceDefinition
- DefinitionSchema::complete() — Method in class DefinitionSchema
- DefinitionSchema::completeDefault() — Method in class DefinitionSchema
- InjectExtension::callInjects() — Method in class InjectExtension
Calls all methods starting with "inject" using autowiring.
- Helpers::convertType() — Method in class Helpers
Non data-loss type conversion.
- PhpGenerator::convertArguments() — Method in class PhpGenerator
- Resolver::completeDefinition() — Method in class Resolver
- Resolver::completeStatement() — Method in class Resolver
- Resolver::completeArguments() — Method in class Resolver
D
- $ ContainerFactory#defaultExtensions — Property in class ContainerFactory
- $ ContainerFactory#dynamicParameters — Property in class ContainerFactory
- NeonAdapter::dump() — Method in class NeonAdapter
Generates configuration in NEON format.
- PhpAdapter::dump() — Method in class PhpAdapter
Generates configuration in PHP format.
- Definition — Class in namespace Nette\DI\Definitions
Definition used by ContainerBuilder.
- DependencyChecker — Class in namespace Nette\DI
Cache dependencies checker.
- DynamicParameter — Class in namespace Nette\DI
- DIExtension — Class in namespace Nette\DI\Extensions
DI extension.
- $ DIExtension#debugger — Property in class DIExtension
- DecoratorExtension — Class in namespace Nette\DI\Extensions
Decorators for services.
- DefinitionSchema — Class in namespace Nette\DI\Extensions
Service configuration schema.
- $ ParametersExtension#dynamicParams — Property in class ParametersExtension
- $ ParametersExtension#dynamicValidators — Property in class ParametersExtension
E
- Compiler::exportDependencies() — Method in class Compiler
Exports dependencies.
- Loader::expandIncludedFile() — Method in class Loader
Expands included file name.
- ContainerBuilder::exportMeta() — Method in class ContainerBuilder
- DependencyChecker::export() — Method in class DependencyChecker
Exports dependencies.
- $ DIExtension#exportedTags — Property in class DIExtension
- $ DIExtension#exportedTypes — Property in class DIExtension
- $ DIExtension#excluded — Property in class DIExtension
- $ DIExtension#export — Property in class DIExtension
- ExtensionsExtension — Class in namespace Nette\DI\Extensions
Enables registration of other extensions in $config file
- Helpers::expand() — Method in class Helpers
Expands %placeholders%.
- Helpers::escape() — Method in class Helpers
Escapes '%' and '@'
- Helpers::ensureClassType() — Method in class Helpers
- Helpers::entityToString() — Method in class Helpers
F
- Autowiring::findByType() — Method in class Autowiring
Gets the service names and definitions of the specified type.
- Container::findAutowired() — Method in class Container
Returns the names of autowired services of the given type.
- Container::findByType() — Method in class Container
Returns the names of all services of the given type.
- Container::findByTag() — Method in class Container
Returns the names of services with the given tag.
- ContainerBuilder::findAutowired() — Method in class ContainerBuilder
Gets the autowired service names and definitions of the specified type.
- 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 names and tag values.
- ContainerBuilder::formatPhp() — Method in class ContainerBuilder
- FactoryDefinition — Class in namespace Nette\DI\Definitions
Definition of standard service.
- Reference::fromType() — Method in class Reference
- SearchExtension::findClasses() — Method in class SearchExtension
- Helpers::filterArguments() — Method in class Helpers
Process constants recursively.
- PhpGenerator::formatStatement() — Method in class PhpGenerator
Formats PHP code for class instantiating, function calling or property setting in PHP.
- PhpGenerator::formatPhp() — Method in class PhpGenerator
Formats PHP statement.
G
- ContainerFactory::generateContainer() — Method in class ContainerFactory
- ContainerFactory::generateContainerKey() — Method in class ContainerFactory
- ContainerFactory::getCacheDirectory() — Method in class ContainerFactory
- ContainerPanel::getTab() — Method in class ContainerPanel
Renders tab.
- ContainerPanel::getPanel() — Method in class ContainerPanel
Renders panel.
- Autowiring::getByType() — Method in class Autowiring
Resolves service name by type.
- Autowiring::getClassList() — Method in class Autowiring
- 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::getConfigSchema() — Method in class CompilerExtension
Returns configuration schema.
- CompilerExtension::getContainerBuilder() — Method in class CompilerExtension
- CompilerExtension::getInitialization() — Method in class CompilerExtension
- Loader::getDependencies() — Method in class Loader
Returns configuration files.
- Container::getParameters() — Method in class Container
- Container::getParameter() — Method in class Container
- Container::getStaticParameters() — Method in class Container
- Container::getDynamicParameter() — Method in class Container
- Container::getService() — Method in class Container
Returns the service instance. If it has not been created yet, it creates it.
- Container::getByName() — Method in class Container
Returns the service instance. If it has not been created yet, it creates it.
- Container::getServiceType() — Method in class Container
Returns type of the service.
- Container::getByType() — Method in class Container
Returns an instance of the autowired service of the given type. If it has not been created yet, it creates it.
- Container::getMethodName() — Method in class Container
Returns the method name for creating a service.
- 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::getByType() — Method in class ContainerBuilder
Resolves autowired service name by type.
- ContainerBuilder::getDefinitionByType() — Method in class ContainerBuilder
Gets autowired service definition of the specified type.
- ContainerBuilder::getDependencies() — Method in class ContainerBuilder
Returns the list of dependencies.
- ContainerLoader::getClassName() — Method in class ContainerLoader
- ContainerLoader::generate() — Method in class ContainerLoader
- AccessorDefinition::getImplement() — Method in class AccessorDefinition
- AccessorDefinition::getReference() — Method in class AccessorDefinition
- AccessorDefinition::generateMethod() — Method in class AccessorDefinition
- Definition::getName() — Method in class Definition
- Definition::getDescriptor() — Method in class Definition
- Definition::getType() — Method in class Definition
- Definition::getTags() — Method in class Definition
- Definition::getTag() — Method in class Definition
- Definition::getAutowired() — Method in class Definition
- Definition::generateMethod() — Method in class Definition
- Definition::getClass() — Method in class Definition
- FactoryDefinition::getImplement() — Method in class FactoryDefinition
- FactoryDefinition::getResultType() — Method in class FactoryDefinition
- FactoryDefinition::getResultDefinition() — Method in class FactoryDefinition
- FactoryDefinition::generateMethod() — Method in class FactoryDefinition
- ImportedDefinition::generateMethod() — Method in class ImportedDefinition
- LocatorDefinition::getImplement() — Method in class LocatorDefinition
- LocatorDefinition::getReferences() — Method in class LocatorDefinition
- LocatorDefinition::getTagged() — Method in class LocatorDefinition
- LocatorDefinition::generateMethod() — Method in class LocatorDefinition
- Reference::getValue() — Method in class Reference
- ServiceDefinition::getDescriptor() — Method in class ServiceDefinition
- ServiceDefinition::getFactory() — Method in class ServiceDefinition
Alias for getCreator()
- ServiceDefinition::getCreator() — Method in class ServiceDefinition
- ServiceDefinition::getEntity() — Method in class ServiceDefinition
- ServiceDefinition::getSetup() — Method in class ServiceDefinition
- ServiceDefinition::generateMethod() — Method in class ServiceDefinition
- Statement::getEntity() — Method in class Statement
- DecoratorExtension::getConfigSchema() — Method in class DecoratorExtension
Returns configuration schema.
- ExtensionsExtension::getConfigSchema() — Method in class ExtensionsExtension
Returns configuration schema.
- InjectExtension::getConfigSchema() — Method in class InjectExtension
Returns configuration schema.
- InjectExtension::getInjectMethods() — Method in class InjectExtension
Generates list of inject methods.
- InjectExtension::getInjectProperties() — Method in class InjectExtension
Generates list of properties with annotation @inject.
- SearchExtension::getConfigSchema() — Method in class SearchExtension
Returns configuration schema.
- ServicesExtension::getConfigSchema() — Method in class ServicesExtension
Returns configuration schema.
- PhpGenerator::generate() — Method in class PhpGenerator
Generates PHP classes. First class is the container.
- PhpGenerator::generateMethod() — Method in class PhpGenerator
- PhpGenerator::getClassName() — Method in class PhpGenerator
- Resolver::getContainerBuilder() — Method in class Resolver
- Resolver::getByType() — Method in class Resolver
Returns named reference to service resolved by type (or 'self' reference for local-autowiring).
- Resolver::getFirstClassCallable() — Method in class Resolver
H
- Helpers — Class 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?
- Helpers — Class in namespace Nette\DI
The DI helpers.
I
- Inject — Class in namespace Nette\DI\Attributes
- $ CompilerExtension#initialization — Property in class CompilerExtension
- Container::isCreated() — Method in class Container
Has a service instance been created?
- Container::initialize() — Method in class Container
- Definition::isAnonymous() — Method in class Definition
- Definition::isExported() — Method in class Definition
- Definition::isAutowired() — Method in class Definition
- ImportedDefinition — Class in namespace Nette\DI\Definitions
Imported service injected to the container.
- Reference::isName() — Method in class Reference
- Reference::isType() — Method in class Reference
- Reference::isSelf() — Method in class Reference
- DependencyChecker::isExpired() — Method in class DependencyChecker
Are dependencies expired?
- InjectExtension — Class in namespace Nette\DI\Extensions
Calls inject methods and fills @inject properties.
- InvalidConfigurationException — Class in namespace Nette\DI
Error in configuration.
L
- ContainerFactory::loadContainer() — Method in class ContainerFactory
Loads system DI container class and returns its name.
- Compiler::loadConfig() — Method in class Compiler
Adds new configuration from file.
- Compiler::loadDefinitionsFromConfig() — Method in class Compiler
Loads list of service definitions from configuration.
- CompilerExtension::loadFromFile() — Method in class CompilerExtension
Reads configuration from file.
- CompilerExtension::loadDefinitionsFromConfig() — Method in class CompilerExtension
Loads list of service definitions from configuration.
- CompilerExtension::loadConfiguration() — Method in class CompilerExtension
Processes configuration data. Intended to be overridden by descendant.
- Adapter::load() — Method in class Adapter
Reads configuration from file.
- NeonAdapter::load() — Method in class NeonAdapter
Reads configuration from NEON file.
- PhpAdapter::load() — Method in class PhpAdapter
Reads configuration from PHP file.
- Loader — Class 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
- LocatorDefinition — Class in namespace Nette\DI\Definitions
Multi accessor/factory definition.
- ExtensionsExtension::loadConfiguration() — Method in class ExtensionsExtension
Processes configuration data. Intended to be overridden by descendant.
- ParametersExtension::loadConfiguration() — Method in class ParametersExtension
Processes configuration data. Intended to be overridden by descendant.
- SearchExtension::loadConfiguration() — Method in class SearchExtension
Processes configuration data. Intended to be overridden by descendant.
- ServicesExtension::loadConfiguration() — Method in class ServicesExtension
Processes configuration data. Intended to be overridden by descendant.
- ServicesExtension::loadDefinitions() — Method in class ServicesExtension
Loads list of service definitions.
M
- Helpers::merge() — Method in class Helpers
- DefinitionSchema::merge() — Method in class DefinitionSchema
- MissingServiceException — Class in namespace Nette\DI
Service not found exception.
N
- $ CompilerExtension#name — Property in class CompilerExtension
- NeonAdapter — Class in namespace Nette\DI\Config\Adapters
Reading and generating NEON files.
- DefinitionSchema::normalize() — Method in class DefinitionSchema
Normalizes configuration of service definitions.
- Helpers::normalizeClass() — Method in class Helpers
- NotAllowedDuringResolvingException — Class in namespace Nette\DI
Not allowed when container is resolving.
- Resolver::normalizeReference() — Method in class Resolver
Normalizes reference to 'self' or named reference (or leaves it typed if it is not possible during resolving) and checks existence of service.
P
- Compiler::processExtensions() — Method in class Compiler
- CompilerExtension::prefix() — Method in class CompilerExtension
Prepend extension name to identifier or service name.
- NeonAdapter::process() — Method in class NeonAdapter
- PhpAdapter — Class in namespace Nette\DI\Config\Adapters
Reading and generating PHP files.
- $ Container#parameters — Property in class Container
- $ ContainerBuilder#parameters — Property in class ContainerBuilder
- $ DIExtension#parentClass — Property in class DIExtension
- ParametersExtension — Class in namespace Nette\DI\Extensions
- Parameters.
- 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.
- PhpGenerator — Class in namespace Nette\DI
Container PHP code generator.
R
- Autowiring::rebuild() — Method in class Autowiring
- Container::removeService() — Method in class Container
Removes a service instance from the container.
- ContainerBuilder::removeDefinition() — Method in class ContainerBuilder
Removes the specified service definition.
- ContainerBuilder::removeAlias() — Method in class ContainerBuilder
Removes the specified alias.
- ContainerBuilder::resolve() — Method in class ContainerBuilder
Checks services, resolves types and rebuilts autowiring classlist.
- AccessorDefinition::resolveType() — Method in class AccessorDefinition
- Definition::resolveType() — Method in class Definition
- FactoryDefinition::resolveType() — Method in class FactoryDefinition
- ImportedDefinition::resolveType() — Method in class ImportedDefinition
- LocatorDefinition::resolveType() — Method in class LocatorDefinition
- Reference — Class in namespace Nette\DI\Definitions
Reference to service. Either by name or by type or reference to the 'self' service.
- ServiceDefinition::resolveType() — Method in class ServiceDefinition
- Resolver — Class in namespace Nette\DI
Services resolver
- Resolver::resolveDefinition() — Method in class Resolver
- Resolver::resolveReferenceType() — Method in class Resolver
- Resolver::resolveEntityType() — Method in class Resolver
- Resolver::resolveReference() — Method in class Resolver
S
- $ ContainerFactory#staticParameters — Property in class ContainerFactory
- $ ContainerFactory#services — Property in class ContainerFactory
- ContainerFactory::setDebugMode() — Method in class ContainerFactory
Set parameter %debugMode%.
- ContainerFactory::setTempDirectory() — Method in class ContainerFactory
Sets path to temporary directory.
- 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::setParameters() — Method in class Loader
- AccessorDefinition::setImplement() — Method in class AccessorDefinition
- AccessorDefinition::setReference() — Method in class AccessorDefinition
- Definition::setName() — Method in class Definition
- Definition::setType() — Method in class Definition
- Definition::setTags() — Method in class Definition
- Definition::setAutowired() — Method in class Definition
- Definition::setExported() — Method in class Definition
- Definition::setNotifier() — Method in class Definition
- Definition::setClass() — Method in class Definition
- FactoryDefinition::setImplement() — Method in class FactoryDefinition
- FactoryDefinition::setResultDefinition() — Method in class FactoryDefinition
- ImportedDefinition::setType() — Method in class ImportedDefinition
- LocatorDefinition::setImplement() — Method in class LocatorDefinition
- LocatorDefinition::setReferences() — Method in class LocatorDefinition
- LocatorDefinition::setTagged() — Method in class LocatorDefinition
- ServiceDefinition — Class in namespace Nette\DI\Definitions
Definition of standard service.
- ServiceDefinition::setType() — Method in class ServiceDefinition
- ServiceDefinition::setFactory() — Method in class ServiceDefinition
Alias for setCreator()
- ServiceDefinition::setCreator() — Method in class ServiceDefinition
- ServiceDefinition::setArguments() — Method in class ServiceDefinition
- ServiceDefinition::setArgument() — Method in class ServiceDefinition
- ServiceDefinition::setSetup() — Method in class ServiceDefinition
- Statement — Class in namespace Nette\DI\Definitions
Assignment or calling statement.
- SearchExtension — Class in namespace Nette\DI\Extensions
Services auto-discovery.
- ServicesExtension — Class in namespace Nette\DI\Extensions
Services definitions loader.
- ServiceCreationException — Class in namespace Nette\DI
Service creation exception.
- ServiceCreationException::setMessage() — Method in class ServiceCreationException
T
- Helpers::takeParent() — Method in class Helpers
- $ Container#tags — Property in class Container
- PhpGenerator::toString() — Method in class PhpGenerator
V
- CompilerExtension::validateConfig() — Method in class CompilerExtension
Checks whether $config contains only $expected items and returns combined array.
W
- $ Container#wiring — Property in class Container
_
- ContainerFactory::__construct() — Method in class ContainerFactory
- ContainerPanel::__construct() — Method in class ContainerPanel
- Autowiring::__construct() — Method in class Autowiring
- Compiler::__construct() — Method in class Compiler
- Container::__construct() — Method in class Container
- ContainerBuilder::__construct() — Method in class ContainerBuilder
- ContainerLoader::__construct() — Method in class ContainerLoader
- Definition::__clone() — Method in class Definition
- FactoryDefinition::__construct() — Method in class FactoryDefinition
- FactoryDefinition::__clone() — Method in class FactoryDefinition
- Reference::__construct() — Method in class Reference
- ServiceDefinition::__construct() — Method in class ServiceDefinition
- ServiceDefinition::__clone() — Method in class ServiceDefinition
- Statement::__construct() — Method in class Statement
- DIExtension::__construct() — Method in class DIExtension
- DefinitionSchema::__construct() — Method in class DefinitionSchema
- ParametersExtension::__construct() — Method in class ParametersExtension
- SearchExtension::__construct() — Method in class SearchExtension
- PhpGenerator::__construct() — Method in class PhpGenerator
- Resolver::__construct() — Method in class Resolver