PHP 클래스 Platformsh\Cli\Local\LocalApplication

파일 보기 프로젝트 열기: commerceguys/platform-cli 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$appRoot
$cliConfig
$config
$sourceDir

공개 메소드들

메소드 설명
__construct ( string $appRoot, CliConfig $cliConfig = null, string | null $sourceDir = null )
getApplication ( string | null $name, string $directory, CliConfig $config = null ) : LocalApplication Get a single application by name.
getApplications ( string $directory, CliConfig $config = null ) : LocalApplication[] Get a list of applications in a directory.
getConfig ( ) : array Get the application's configuration, parsed from its YAML definition.
getDocumentRoot ( ) : string Get the configured document root for the application, as a relative path.
getId ( ) : string Get a unique identifier for this app.
getName ( ) : string | null
getRoot ( ) : string
getSharedFileMounts ( ) : array Get a list of shared file mounts configured for the app.
getToolstack ( ) : Platformsh\Cli\Local\Toolstack\ToolstackInterface | false Get the toolstack for the application.
getToolstacks ( ) : Platformsh\Cli\Local\Toolstack\ToolstackInterface[]
setConfig ( array $config ) Override the application config.
shouldMoveToRoot ( ) : string Check whether the whole app should be moved into the document root.

보호된 메소드들

메소드 설명
getPath ( ) : string
normalizeConfig ( array $config ) : array Normalize an application's configuration.

메소드 상세

__construct() 공개 메소드

public __construct ( string $appRoot, CliConfig $cliConfig = null, string | null $sourceDir = null )
$appRoot string
$cliConfig Platformsh\Cli\CliConfig
$sourceDir string | null

getApplication() 공개 정적인 메소드

Get a single application by name.
public static getApplication ( string | null $name, string $directory, CliConfig $config = null ) : LocalApplication
$name string | null The application name.
$directory string The absolute path to a directory.
$config Platformsh\Cli\CliConfig CLI configuration.
리턴 LocalApplication

getApplications() 공개 정적인 메소드

Get a list of applications in a directory.
public static getApplications ( string $directory, CliConfig $config = null ) : LocalApplication[]
$directory string The absolute path to a directory.
$config Platformsh\Cli\CliConfig CLI configuration.
리턴 LocalApplication[]

getConfig() 공개 메소드

Get the application's configuration, parsed from its YAML definition.
public getConfig ( ) : array
리턴 array

getDocumentRoot() 공개 메소드

Get the configured document root for the application, as a relative path.
public getDocumentRoot ( ) : string
리턴 string

getId() 공개 메소드

Get a unique identifier for this app.
public getId ( ) : string
리턴 string

getName() 공개 메소드

public getName ( ) : string | null
리턴 string | null

getPath() 보호된 메소드

protected getPath ( ) : string
리턴 string

getRoot() 공개 메소드

public getRoot ( ) : string
리턴 string

getSharedFileMounts() 공개 메소드

Get a list of shared file mounts configured for the app.
public getSharedFileMounts ( ) : array
리턴 array An array of shared file mount paths, keyed by the path in the app. Leading and trailing slashes are stripped.

getToolstack() 공개 메소드

Get the toolstack for the application.
public getToolstack ( ) : Platformsh\Cli\Local\Toolstack\ToolstackInterface | false
리턴 Platformsh\Cli\Local\Toolstack\ToolstackInterface | false

getToolstacks() 공개 메소드

public getToolstacks ( ) : Platformsh\Cli\Local\Toolstack\ToolstackInterface[]
리턴 Platformsh\Cli\Local\Toolstack\ToolstackInterface[]

normalizeConfig() 보호된 메소드

Normalize an application's configuration.
protected normalizeConfig ( array $config ) : array
$config array
리턴 array

setConfig() 공개 메소드

Override the application config.
public setConfig ( array $config )
$config array

shouldMoveToRoot() 공개 메소드

Check whether the whole app should be moved into the document root.
public shouldMoveToRoot ( ) : string
리턴 string

프로퍼티 상세

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

protected $appRoot

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

protected $cliConfig

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

protected $config

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

protected $sourceDir