ComposerFileWriter
class ComposerFileWriter
plugin composer 파일을 제어하는 클래스.
Constants
STATUS_RUNNING |
|
STATUS_SUCCESSED |
|
STATUS_FAILED |
|
STATUS_EXPIRED |
|
Properties
protected string | $path | ||
protected array | $data | ||
private PluginScanner | $scanner |
Methods
No description
json 파일의 내용을 메모리에 읽어온다.
generate plugin composer file
현재 설치된 플러그인들의 정보를 조회하여 반영한다.
현재 실행중인 작업에 대한 정보를 초기화 한다.
setFixMode
setUpdateMode
add plugin to require
remove plugin from require
register plugin to install list
register plugin to update list
register plugin to uninstall list
save loaded data to plugin composer file
retrieve data
set data
get all data
Details
at line 53
string
getPath()
at line 64
__construct(string $path, PluginScanner $scanner)
ComposerFileWriter constructor.
at line 77
void
load()
json 파일의 내용을 메모리에 읽어온다.
at line 92
void
makeFile()
generate plugin composer file
at line 112
$this
reset()
현재 설치된 플러그인들의 정보를 조회하여 반영한다.
at line 144
$this
cleanOperation()
현재 실행중인 작업에 대한 정보를 초기화 한다.
at line 155
void
setFixMode()
setFixMode
at line 173
void
setUpdateMode(array $fixedList = array())
setUpdateMode
at line 197
$this
addRequire(string $name, string $version)
add plugin to require
at line 210
$this
removeRequire(string $name)
remove plugin from require
at line 225
$this
install(string $name, string $version, string $expiredTime)
register plugin to install list
at line 246
$this
update(string $name, string $version, string $expiredTime)
register plugin to update list
at line 262
$this
uninstall(string $name, string $expiredTime)
register plugin to uninstall list
at line 279
void
write()
save loaded data to plugin composer file
at line 298
mixed
get(string $key, mixed $default = null)
retrieve data
at line 311
void
set(string $key, mixed $value)
set data
at line 321
array
all()
get all data