AddAnnotatedClassesToCachePass
in package
implements
CompilerPassInterface
Sets the classes to compile in the cache for the container.
Tags
Interfaces, Classes and Traits
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- $kernel : mixed
- __construct() : mixed
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- expandClasses() : array<string|int, mixed>
- Expands the given class patterns using a list of existing classes.
- getClassesInComposerClassMaps() : array<string|int, mixed>
- matchAnyRegexps() : bool
- patternsToRegexps() : array<string|int, mixed>
Properties
$kernel
private
mixed
$kernel
Methods
__construct()
public
__construct(Kernel $kernel) : mixed
Parameters
- $kernel : Kernel
Return values
mixed —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 —expandClasses()
Expands the given class patterns using a list of existing classes.
private
expandClasses(array<string|int, mixed> $patterns, array<string|int, mixed> $classes) : array<string|int, mixed>
Parameters
- $patterns : array<string|int, mixed>
-
The class patterns to expand
- $classes : array<string|int, mixed>
-
The existing classes to match against the patterns
Return values
array<string|int, mixed> —getClassesInComposerClassMaps()
private
getClassesInComposerClassMaps() : array<string|int, mixed>
Return values
array<string|int, mixed> —matchAnyRegexps()
private
matchAnyRegexps(string $class, array<string|int, mixed> $regexps) : bool
Parameters
- $class : string
- $regexps : array<string|int, mixed>
Return values
bool —patternsToRegexps()
private
patternsToRegexps(array<string|int, mixed> $patterns) : array<string|int, mixed>
Parameters
- $patterns : array<string|int, mixed>