get_declared_classes
symfony/var-dumper
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns an array with the name of the defined classes
get_declared_classes
(): array
if (
null
===
self
::
$vendorRoots
) {
self
::
$vendorRoots
= [];
foreach (
get_declared_classes
() as
$class
) {
if (
'C'
===
$class
[
0
] &&
str_starts_with
(
$class
,
'ComposerAutoloaderInit'
)) {
$r
= new
\ReflectionClass
(
$class
);
$v
=
\dirname
(
$r
->
getFileName
(),
2
);
Caster/LinkStub.php