aa
if (null !== $exists = &self::$existsCache[$this->resource]) {
if ($loaded) {
$exists = [true, null];
} elseif (0 >= $timestamp && !$exists[0] && null !== $exists[1]) {
throw new \ReflectionException($exists[1]);
}
} elseif ([false, null] === $exists = [$loaded, null]) {
if (!self::$autoloadLevel++) {
spl_autoload_register(__CLASS__.'::throwOnRequiredClass');
}
try {
if (isset($this->classReflectors[$class])) {
$classReflector = $this->classReflectors[$class];
} elseif (class_exists(ClassExistenceResource::class)) {
$resource = new ClassExistenceResource($class, false);
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
} else {
$classReflector = class_exists($class) ? new \ReflectionClass($class) : false;
}
} catch (\ReflectionException $e) {
if ($throw) {
$class = $class ?: $def->getClass();
$bindings += $def->getBindings();
}
$class = $parameterBag->resolveValue($class);
if (!$r = $container->getReflectionClass($class)) {
throw new InvalidArgumentException(sprintf('Class "%s" used for service "%s" cannot be found.', $class, $id));
}
$isContainerAware = $r->implementsInterface(ContainerAwareInterface::class) || is_subclass_of($class, AbstractController::class);
// get regular public methods
*/
public function compile(ContainerBuilder $container)
{
try {
foreach ($this->passConfig->getPasses() as $pass) {
$pass->process($container);
}
} catch (\Exception $e) {
$usedEnvs = [];
$prev = $e;
if ($resolveEnvPlaceholders && $bag instanceof EnvPlaceholderParameterBag) {
$compiler->addPass(new ResolveEnvPlaceholdersPass(), PassConfig::TYPE_AFTER_REMOVING, -1000);
}
$compiler->compile($this);
foreach ($this->definitions as $id => $definition) {
if ($this->trackResources && $definition->isLazy()) {
$this->getReflectionClass($definition->getClass());
}
}
try {
$container = null;
$container = $this->buildContainer();
$container->compile();
} finally {
if ($collectDeprecations) {
restore_error_handler();
@file_put_contents($buildDir.'/'.$class.'Deprecations.log', serialize(array_values($collectedLogs)));
$_ENV['SHELL_VERBOSITY'] = 3;
$_SERVER['SHELL_VERBOSITY'] = 3;
}
$this->initializeBundles();
$this->initializeContainer();
$container = $this->container;
if ($container->hasParameter('kernel.trusted_hosts') && $trustedHosts = $container->getParameter('kernel.trusted_hosts')) {
Request::setTrustedHosts($trustedHosts);
* {@inheritdoc}
*/
public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true)
{
if (!$this->booted) {
$container = $this->container ?? $this->preBoot();
if ($container->has('http_cache')) {
return $container->get('http_cache')->handle($request, $type, $catch);
}
}
}
}
}
$kernel = new Kernel($env, $debug);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
ReflectionException
|
---|
ReflectionException: The autoloader expected class "Plugin\NZCustompg\Controller\Admin\FieldController" to be defined in file "/home/noie373zam/public_html/noiezam-ec/vendor/composer/../../app/Plugin/NZCustompg/Controller/Admin/FieldController.php". The file was found but the class was not in it, the class name or namespace probably has a typo. at /home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Resource/ClassExistenceResource.php:68 at Symfony\Component\Config\Resource\ClassExistenceResource->isFresh() (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/ContainerBuilder.php:370) at Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass() (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/DependencyInjection/RegisterControllerArgumentLocatorsPass.php:85) at Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass->process() (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Compiler/Compiler.php:82) at Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/ContainerBuilder.php:757) at Symfony\Component\DependencyInjection\ContainerBuilder->compile() (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:546) at Symfony\Component\HttpKernel\Kernel->initializeContainer() (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:787) at Symfony\Component\HttpKernel\Kernel->preBoot() (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:190) at Symfony\Component\HttpKernel\Kernel->handle() (/home/noie373zam/public_html/noiezam-ec/index.php:83) |