You are here

private function ClassNotFoundFatalErrorHandler::classExists in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php \Symfony\Component\Debug\FatalErrorHandler\ClassNotFoundFatalErrorHandler::classExists()

Parameters

string $class:

Return value

bool

1 call to ClassNotFoundFatalErrorHandler::classExists()
ClassNotFoundFatalErrorHandler::convertFileToClass in vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php

File

vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php, line 208

Class

ClassNotFoundFatalErrorHandler
ErrorHandler for classes that do not exist.

Namespace

Symfony\Component\Debug\FatalErrorHandler

Code

private function classExists($class) {
  return class_exists($class, false) || interface_exists($class, false) || function_exists('trait_exists') && trait_exists($class, false);
}