private static function ClassCollectionLoader::getOrderedClasses in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/class-loader/ClassCollectionLoader.php \Symfony\Component\ClassLoader\ClassCollectionLoader::getOrderedClasses()
Gets an ordered array of passed classes including all their dependencies.
Parameters
array $classes:
Return value
\ReflectionClass[] An array of sorted \ReflectionClass instances (dependencies added if needed)
Throws
\InvalidArgumentException When a class can't be loaded
1 call to ClassCollectionLoader::getOrderedClasses()
- ClassCollectionLoader::load in vendor/
symfony/ class-loader/ ClassCollectionLoader.php - Loads a list of classes and caches them in one big file.
File
- vendor/
symfony/ class-loader/ ClassCollectionLoader.php, line 251
Class
- ClassCollectionLoader
- ClassCollectionLoader.
Namespace
Symfony\Component\ClassLoaderCode
private static function getOrderedClasses(array $classes) {
$map = array();
self::$seen = array();
foreach ($classes as $class) {
try {
$reflectionClass = new \ReflectionClass($class);
} catch (\ReflectionException $e) {
throw new \InvalidArgumentException(sprintf('Unable to load class "%s"', $class));
}
$map = array_merge($map, self::getClassHierarchy($reflectionClass));
}
return $map;
}