W3cubDocs

/Symfony 4.1

Symfony\Component\DependencyInjection\Compiler

Classes

AbstractRecursivePass
AnalyzeServiceReferencesPass Run this pass before passes that need to know more about the relation of your services.
AutoAliasServicePass Sets a service to be an alias of another one, given a format pattern.
AutowirePass Inspects existing service definitions and wires the autowired ones using the type hints of their classes.
AutowireRequiredMethodsPass Looks for definitions with autowiring enabled and registers their corresponding "@required" methods as setters.
CheckArgumentsValidityPass Checks if arguments of methods are properly configured.
CheckCircularReferencesPass Checks your services for circular references.
CheckDefinitionValidityPass This pass validates each definition individually only taking the information into account which is contained in the definition itself.
CheckExceptionOnInvalidReferenceBehaviorPass Checks that all references are pointing to a valid service.
CheckReferenceValidityPass Checks the validity of references.
Compiler This class is used to remove circular dependencies between individual passes.
DecoratorServicePass Overwrites a service but keeps the overridden one.
DefinitionErrorExceptionPass Throws an exception for any Definitions that have errors and still exist.
ExtensionCompilerPass A pass to automatically process extensions if they implement CompilerPassInterface.
InlineServiceDefinitionsPass Inline service definitions where this is possible.
MergeExtensionConfigurationContainerBuilder A container builder preventing using methods that wouldn't have any effect from extensions.
MergeExtensionConfigurationParameterBag
MergeExtensionConfigurationPass Merges extension configs into the container builder.
PassConfig Compiler Pass Configuration.
PriorityTaggedServiceTrait Trait that allows a generic method to find and sort service by priority option in the tag.
RegisterEnvVarProcessorsPass Creates the container.env_var_processors_locator service.
RegisterServiceSubscribersPass Compiler pass to register tagged services that require a service locator.
RemoveAbstractDefinitionsPass Removes abstract Definitions.
RemovePrivateAliasesPass Remove private aliases from the container. They were only used to establish dependencies between services, and these dependencies have been resolved in one of the previous passes.
RemoveUnusedDefinitionsPass Removes unused service definitions from the container.
RepeatedPass A pass that might be run repeatedly.
ReplaceAliasByActualDefinitionPass Replaces aliases with actual service definitions, effectively removing these aliases.
ResolveBindingsPass
ResolveChildDefinitionsPass This replaces all ChildDefinition instances with their equivalent fully merged Definition instance.
ResolveClassPass
ResolveEnvPlaceholdersPass Replaces env var placeholders by their current values.
ResolveFactoryClassPass
ResolveHotPathPass Propagate "container.hot_path" tags to referenced services.
ResolveInstanceofConditionalsPass Applies instanceof conditionals to definitions.
ResolveInvalidReferencesPass Emulates the invalid behavior if the reference is not found within the container.
ResolveNamedArgumentsPass Resolves named arguments to their corresponding numeric index.
ResolveParameterPlaceHoldersPass Resolves all parameter placeholders "%somevalue%" to their real values.
ResolvePrivatesPass
ResolveReferencesToAliasesPass Replaces all references to aliases with references to the actual service.
ResolveServiceSubscribersPass Compiler pass to inject their service locator to service subscribers.
ResolveTaggedIteratorArgumentPass Resolves all TaggedIteratorArgument arguments.
ServiceLocatorTagPass Applies the "container.service_locator" tag by wrapping references into ServiceClosureArgument instances.
ServiceReferenceGraph This is a directed graph of your services.
ServiceReferenceGraphEdge Represents an edge in your service graph.
ServiceReferenceGraphNode Represents a node in your service graph.
ValidateEnvPlaceholdersPass Validates environment variable placeholders used in extension configuration with dummy values.

Interfaces

CompilerPassInterface Interface that must be implemented by compilation passes.
RepeatablePassInterface Interface that must be implemented by passes that are run as part of an RepeatedPass.

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler.html