PHP 클래스 XStatic\ProxyManager

파일 보기 프로젝트 열기: jeremeamia/xstatic 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Interop\Container\ContainerInterface $container, xstatic\AliasLoaderInterface $aliasLoader = null )
addProxy ( string $alias, string $proxyFqcn ) Adds a Static Proxy class by delegating to the Alias Loader
enable ( boolean | string $rootNamespace = self::ROOT_NAMESPACE_GLOBAL ) : boolean Enables the Static Proxies by injecting the Container object and registering the Alias Loader for autoloading
setContainer ( Interop\Container\ContainerInterface $container ) Sets the Container object that provides the actual subjects' instances

메소드 상세

__construct() 공개 메소드

public __construct ( Interop\Container\ContainerInterface $container, xstatic\AliasLoaderInterface $aliasLoader = null )
$container Interop\Container\ContainerInterface Container that holds the actual instances
$aliasLoader xstatic\AliasLoaderInterface Alias Loader object that stores and resolves

addProxy() 공개 메소드

Adds a Static Proxy class by delegating to the Alias Loader
public addProxy ( string $alias, string $proxyFqcn )
$alias string Alias to associate with the Static Proxy class
$proxyFqcn string FQCN of the Static Proxy class

enable() 공개 메소드

Enables the Static Proxies by injecting the Container object and registering the Alias Loader for autoloading
또한 보기: XStatic\AliasLoaderInterface::register()
public enable ( boolean | string $rootNamespace = self::ROOT_NAMESPACE_GLOBAL ) : boolean
$rootNamespace boolean | string The namespace that the alias should be created in
리턴 boolean

setContainer() 공개 메소드

Sets the Container object that provides the actual subjects' instances
public setContainer ( Interop\Container\ContainerInterface $container )
$container Interop\Container\ContainerInterface Instance of a Container (or Service Locator)