RegisterAutoconfigureAttributesPass
in package
implements
CompilerPassInterface
FinalYes
Reads #[Autoconfigure] attributes on definitions that are autoconfigured and don't have the "container.ignore_attributes" tag.
Tags
Table of Contents
Interfaces
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Properties
- $registerForAutoconfiguration : Closure
Methods
- accept() : bool
- process() : void
- You can modify the container here before it is dumped to PHP code.
- processClass() : void
- registerForAutoconfiguration() : void
Properties
$registerForAutoconfiguration
private
static Closure
$registerForAutoconfiguration
Methods
accept()
public
accept(Definition $definition) : bool
Parameters
- $definition : Definition
Return values
boolprocess()
You can modify the container here before it is dumped to PHP code.
public
process(ContainerBuilder $container) : void
Parameters
- $container : ContainerBuilder
processClass()
public
processClass(ContainerBuilder $container, ReflectionClass $class) : void
Parameters
- $container : ContainerBuilder
- $class : ReflectionClass
registerForAutoconfiguration()
private
static registerForAutoconfiguration(ContainerBuilder $container, ReflectionClass $class, ReflectionAttribute $attribute) : void
Parameters
- $container : ContainerBuilder
- $class : ReflectionClass
- $attribute : ReflectionAttribute