function AddAnnotatedClassesToCachePass::getClassesInComposerClassMaps
1 call to AddAnnotatedClassesToCachePass::getClassesInComposerClassMaps()
- AddAnnotatedClassesToCachePass::process in vendor/
symfony/ http-kernel/ DependencyInjection/ AddAnnotatedClassesToCachePass.php - You can modify the container here before it is dumped to PHP code.
File
-
vendor/
symfony/ http-kernel/ DependencyInjection/ AddAnnotatedClassesToCachePass.php, line 85
Class
- AddAnnotatedClassesToCachePass
- Sets the classes to compile in the cache for the container.
Namespace
Symfony\Component\HttpKernel\DependencyInjectionCode
private function getClassesInComposerClassMaps() : array {
$classes = [];
foreach (spl_autoload_functions() as $function) {
if (!\is_array($function)) {
continue;
}
if ($function[0] instanceof DebugClassLoader) {
$function = $function[0]->getClassLoader();
}
if (\is_array($function) && $function[0] instanceof ClassLoader) {
$classes += array_filter($function[0]->getClassMap());
}
}
return array_keys($classes);
}