PHP Класс Doctrine\Common\Proxy\Autoloader

Автор: Benjamin Eberlei ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

register() публичный статический Метод

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.
Результат Closure

resolveFile() публичный статический Метод

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
Результат string