PHP Class Doctrine\Common\Proxy\Autoloader

Author: Benjamin Eberlei ([email protected])
Afficher le fichier Open project: doctrine/common Class Usage Examples

Méthodes publiques

Méthode Description
register ( string $proxyDir, string $proxyNamespace, callable | null $notFoundCallback = null ) : Closure Registers and returns autoloader callback for the given proxy dir and namespace.
resolveFile ( string $proxyDir, string $proxyNamespace, string $className ) : string Resolves proxy class name to a filename based on the following pattern.

Method Details

register() public static méthode

Registers and returns autoloader callback for the given proxy dir and namespace.
public static register ( string $proxyDir, string $proxyNamespace, callable | null $notFoundCallback = null ) : Closure
$proxyDir string
$proxyNamespace string
$notFoundCallback callable | null Invoked when the proxy file is not found.
Résultat Closure

resolveFile() public static méthode

1. Remove Proxy namespace from class name. 2. Remove namespace separators from remaining class name. 3. Return PHP filename from proxy-dir with the result from 2.
public static resolveFile ( string $proxyDir, string $proxyNamespace, string $className ) : string
$proxyDir string
$proxyNamespace string
$className string
Résultat string