public function process(ContainerBuilder
$container) { $annotatedClasses =
[];
foreach ($container->
getExtensions() as $extension) { if ($extension instanceof Extension
) { $annotatedClasses[] =
$extension->
getAnnotatedClassesToCompile();
} } $annotatedClasses =
array_merge($this->kernel->
getAnnotatedClassesToCompile(), ...
$annotatedClasses);
$existingClasses =
$this->
getClassesInComposerClassMaps();
$annotatedClasses =
$container->
getParameterBag()->
resolveValue($annotatedClasses);
$this->kernel->
setAnnotatedClassCache($this->
expandClasses($annotatedClasses,
$existingClasses));
} /**
* Expands the given class patterns using a list of existing classes.
*
* @param array $patterns The class patterns to expand
* @param array $classes The existing classes to match against the patterns
*/