$code["Container{
$hash}/{
$file}"
] =
substr_replace($c, "<?php\n\nnamespace Container{
$hash};\n", 0, 6
);
if (isset($preloadedFiles[$file])) { $preloadedFiles[$file] = "Container{
$hash}/{
$file}";
} } $namespaceLine =
$this->namespace ? "\nnamespace {
$this->namespace
};\n" : '';
$time =
$options['build_time'
];
$id =
hash('crc32',
$hash.
$time);
$this->asFiles = false;
if ($this->preload && null !==
$autoloadFile =
$this->
getAutoloadFile()) { $autoloadFile =
trim($this->
export($autoloadFile), '()\\'
);
$preloadedFiles =
array_reverse($preloadedFiles);
if ('' !==
$preloadedFiles =
implode("';\nrequire __DIR__.'/",
$preloadedFiles)) { $preloadedFiles = "require __DIR__.'/
$preloadedFiles';\n";
} $code[$options['class'
].'.preload.php'
] = <<<EOF
<?php
// This file has been auto-generated by the Symfony Dependency Injection Component
// You can reference it in the "opcache.preload" php.ini setting on PHP >= 7.4 when preloading is desired
use Symfony\Component\DependencyInjection\Dumper\Preloader;
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
return;
}
require