PHP 클래스 Doctrine\Common\Proxy\Autoloader

저자: Benjamin Eberlei ([email protected])
파일 보기 프로젝트 열기: doctrine/common 1 사용 예제들

공개 메소드들

메소드 설명
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