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