$autoloadFile;
(require __DIR__.'/{
$options['class'
]}.php')->set(\\Container{
$hash}\\{
$options['class'
]}::class, null);
$preloadedFiles
\$classes = [];
EOF;
foreach ($this->preload
as $class) { if (!
$class ||
str_contains($class, '$'
) || \
in_array($class,
['int', 'float', 'string', 'bool', 'resource', 'object', 'array', 'null', 'callable', 'iterable', 'mixed', 'void'
], true
)) { continue;
} if (!
(class_exists($class, false
) ||
interface_exists($class, false
) ||
trait_exists($class, false
)) || (new \
ReflectionClass($class))->
isUserDefined()) { $code[$options['class'
].'.preload.php'
] .=
sprintf("\$classes[] = '%s';\n",
$class);
} } $code[$options['class'
].'.preload.php'
] .= <<<'EOF'
$preloaded = Preloader::preload($classes);
EOF;
}