PHP 클래스 Kraken\Console\Server\Manager\ProjectManager

상속: implements Kraken\Console\Server\Manager\ProjectManagerInterface
파일 보기 프로젝트 열기: kraken-php/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$channel Kraken\Channel\ChannelInterface
$data mixed
$fs Kraken\Filesystem\FilesystemInterface
$fsPath string
$projectName string
$projectRoot string
$runtime Kraken\Runtime\RuntimeContainerInterface
$scriptRoot string
$system Kraken\Util\System\SystemInterface

공개 메소드들

메소드 설명
__construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, Kraken\Util\System\SystemInterface $system, Kraken\Filesystem\FilesystemInterface $fs )
__destruct ( )
allocateProject ( string $alias, string $name, string $pid ) : boolean Allocate project data.
createProject ( $flags = Runtime::CREATE_DEFAULT )
destroyProject ( $flags = Runtime::DESTROY_FORCE_SOFT )
existsProject ( )
freeProject ( ) : boolean Flush project data.
getProjectName ( )
getProjectRoot ( )
setProjectName ( $name )
setProjectRoot ( $root )
startProject ( )
stopProject ( )

보호된 메소드들

메소드 설명
createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : Request Create Request.

비공개 메소드들

메소드 설명
getEmptyStorage ( )
phpCommand ( string $command, string[] $params = [] ) : string Run external PHP script.
selectFromStorage ( ) : mixed Copy data from persistent storage to temporary one.
updateStorage ( string[] $with = [] ) Copy temporary project data to persistent storage.

메소드 상세

__construct() 공개 메소드

public __construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, Kraken\Util\System\SystemInterface $system, Kraken\Filesystem\FilesystemInterface $fs )
$runtime Kraken\Runtime\RuntimeContainerInterface
$channel Kraken\Channel\ChannelInterface
$system Kraken\Util\System\SystemInterface
$fs Kraken\Filesystem\FilesystemInterface

__destruct() 공개 메소드

public __destruct ( )

allocateProject() 공개 메소드

Allocate project data.
public allocateProject ( string $alias, string $name, string $pid ) : boolean
$alias string
$name string
$pid string
리턴 boolean

createProject() 공개 메소드

public createProject ( $flags = Runtime::CREATE_DEFAULT )

createRequest() 보호된 메소드

Create Request.
protected createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : Request
$channel Kraken\Channel\ChannelInterface
$receiver string
$command string
리턴 Kraken\Channel\Extra\Request

destroyProject() 공개 메소드

public destroyProject ( $flags = Runtime::DESTROY_FORCE_SOFT )

existsProject() 공개 메소드

public existsProject ( )

freeProject() 공개 메소드

Flush project data.
public freeProject ( ) : boolean
리턴 boolean

getProjectName() 공개 메소드

public getProjectName ( )

getProjectRoot() 공개 메소드

public getProjectRoot ( )

setProjectName() 공개 메소드

public setProjectName ( $name )

setProjectRoot() 공개 메소드

public setProjectRoot ( $root )

startProject() 공개 메소드

public startProject ( )

stopProject() 공개 메소드

public stopProject ( )

프로퍼티 상세

$channel 보호되어 있는 프로퍼티

protected ChannelInterface,Kraken\Channel $channel
리턴 Kraken\Channel\ChannelInterface

$data 보호되어 있는 프로퍼티

protected mixed $data
리턴 mixed

$fs 보호되어 있는 프로퍼티

protected FilesystemInterface,Kraken\Filesystem $fs
리턴 Kraken\Filesystem\FilesystemInterface

$fsPath 보호되어 있는 프로퍼티

protected string $fsPath
리턴 string

$projectName 보호되어 있는 프로퍼티

protected string $projectName
리턴 string

$projectRoot 보호되어 있는 프로퍼티

protected string $projectRoot
리턴 string

$runtime 보호되어 있는 프로퍼티

protected RuntimeContainerInterface,Kraken\Runtime $runtime
리턴 Kraken\Runtime\RuntimeContainerInterface

$scriptRoot 보호되어 있는 프로퍼티

protected string $scriptRoot
리턴 string

$system 보호되어 있는 프로퍼티

protected SystemInterface,Kraken\Util\System $system
리턴 Kraken\Util\System\SystemInterface