Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ClassNotFoundErrorEnhancer
+ Graphe d'héritage de ClassNotFoundErrorEnhancer:

Fonctions membres publiques

 enhance (\Throwable $error)
 

Fonctions membres privées

 getClassCandidates (string $class)
 
 findClassInPath (string $path, string $class, string $prefix)
 
 convertFileToClass (string $path, string $file, string $prefix)
 
 classExists (string $class)
 

Description détaillée

Documentation des fonctions membres

◆ classExists()

classExists ( string  $class)
private

◆ convertFileToClass()

convertFileToClass ( string  $path,
string  $file,
string  $prefix 
)
private

◆ enhance()

enhance ( \Throwable  $error)

{Returns an instance if the class is able to improve the error, null otherwise.}

Implémente ErrorEnhancerInterface.

Références $className, $message, ClassNotFoundErrorEnhancer\getClassCandidates(), FatalError\getError(), et null.

◆ findClassInPath()

findClassInPath ( string  $path,
string  $class,
string  $prefix 
)
private

◆ getClassCandidates()

getClassCandidates ( string  $class)
private

Tries to guess the full namespace for a given class name.

By default, it looks for PSR-0 and PSR-4 classes registered via a Symfony or a Composer autoloader (that should cover all common cases).

Paramètres
string$classA class name (without its namespace)

Returns an array of possible fully qualified class names

Références $class, $classes, $function, $path, $prefix, et ClassNotFoundErrorEnhancer\findClassInPath().

Référencé par ClassNotFoundErrorEnhancer\enhance().


La documentation de cette classe a été générée à partir du fichier suivant :