PluginRegister
class PluginRegister
Registrable 인터페이스를 따르는 요소를 등록합니다.
Theme, OIObject, Skin, DynamicField 등 Core 에서 특별히 취급하는 target 의 용어가 prefix 되어 있음
Constants
NAME_DELIMITER |
등록 아이디에서 등록 플러그인과 고유 아이디를 구분하는 구분자 |
KEY_DELIMITER |
key delimiter |
Properties
protected Container | $register | register container | |
protected array | $unresolvedComponents | unresolved entity list |
Methods
array
getUnresolvedComponents()
get Unresolved Components
void
void
add(string $component)
register class 플러그인의 composer.json 을 통해 등록하지 않을 때 사용
void
mixed
get(string $id)
get Registrable class name
string
split(string $id)
주어진 id를 name, plugin, type, target로 구분한다.
void
setComponentInfo(array $info)
주어진 정보를 component에 설정한다.
Details
at line 66
__construct(Container $register)
PluginRegister constructor.
at line 76
array
getUnresolvedComponents()
get Unresolved Components
at line 88
void
addByEntity(PluginEntity $entity)
주어진 플러그인에 포함된 component를 register에 등록한다.
at line 116
void
add(string $component)
register class 플러그인의 composer.json 을 통해 등록하지 않을 때 사용
at line 135
protected void
addByType(array $parts, ComponentInterface $component)
type, target + type 두가지 모두 등록
at line 166
mixed
get(string $id)
get Registrable class name
at line 178
protected string
split(string $id)
주어진 id를 name, plugin, type, target로 구분한다.
at line 218
protected void
setComponentInfo(array $info)
주어진 정보를 component에 설정한다.