Symfony\Component\ClassLoader\ClassCollectionLoader::load
Loads a list of classes and caches them in one big file.
Signature
public function load(array
$classes,
[string
$cacheDir = false,
[string
$name = false,
[Boolean
$autoReload = false,
[Boolean
$adaptive = false,
[string
$extension = '.php']]]]] )
Parameters
$classes
—
array
- An array of classes to load
$cacheDir
—
string
- A cache directory
$name
—
string
- The cache name prefix
$autoReload
—
object
- Whether to flush the cache when the cache is stale or not
$adaptive
—
object
- Whether to remove already declared classes or not
$extension
—
string
- File extension of the resulting file
Errors/Exceptions
-
InvalidArgumentException
- When class can't be loaded