PHP 클래스 Platformsh\Cli\Local\Toolstack\ToolstackBase

상속: implements Platformsh\Cli\Local\Toolstack\ToolstackInterface
파일 보기 프로젝트 열기: commerceguys/platform-cli 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$app Platformsh\Cli\Local\LocalApplication
$appRoot string
$buildDir string
$config Platformsh\Cli\CliConfig
$copy boolean
$fsHelper Platformsh\Cli\Helper\FilesystemHelper
$gitHelper Platformsh\Cli\Helper\GitHelper
$ignoredFiles string[] Files from the app root to ignore during install.
$output Symfony\Component\Console\Output\OutputInterface
$settings array
$shellHelper Platformsh\Cli\Helper\ShellHelperInterface
$specialDestinations array Special destinations for installation.

공개 메소드들

메소드 설명
__construct ( object $fsHelper = null, Platformsh\Cli\Helper\ShellHelperInterface $shellHelper = null, object $gitHelper = null )
addIgnoredFiles ( array $ignoredFiles )
canArchive ( )
getAppDir ( ) : string
getKey ( )
getWebRoot ( )
install ( )
prepare ( $buildDir, LocalApplication $app, CliConfig $config, array $settings = [] )
setBuildDir ( $buildDir )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )

보호된 메소드들

메소드 설명
copyGitIgnore ( string $source ) Create a default .gitignore file for the app.
copyToBuildDir ( ) : string Copy, or symlink, files from the app root to the build directory.
getSharedDir ( ) : string | false Get the directory containing files shared between builds.
installDrupalSettingsLocal ( ) Create a settings.local.php for a Drupal site.
processSharedFileMounts ( ) Process shared file mounts in the application.
processSpecialDestinations ( ) Process the defined special destinations.

비공개 메소드들

메소드 설명
cloneToBuildDir ( string $buildDir ) Clone the app to the build directory via Git.

메소드 상세

__construct() 공개 메소드

public __construct ( object $fsHelper = null, Platformsh\Cli\Helper\ShellHelperInterface $shellHelper = null, object $gitHelper = null )
$fsHelper object
$shellHelper Platformsh\Cli\Helper\ShellHelperInterface
$gitHelper object

addIgnoredFiles() 공개 메소드

public addIgnoredFiles ( array $ignoredFiles )
$ignoredFiles array

canArchive() 공개 메소드

public canArchive ( )

copyGitIgnore() 보호된 메소드

Create a default .gitignore file for the app.
protected copyGitIgnore ( string $source )
$source string The path to a default .gitignore file, relative to the 'resources' directory.

copyToBuildDir() 보호된 메소드

Copy, or symlink, files from the app root to the build directory.
protected copyToBuildDir ( ) : string
리턴 string The absolute path to the build directory where files have been copied.

getAppDir() 공개 메소드

public getAppDir ( ) : string
리턴 string

getKey() 공개 메소드

public getKey ( )

getSharedDir() 보호된 메소드

This will be 'shared' for a single-application project, or 'shared/' when there are multiple applications.
protected getSharedDir ( ) : string | false
리턴 string | false

getWebRoot() 공개 메소드

public getWebRoot ( )

install() 공개 메소드

public install ( )

installDrupalSettingsLocal() 보호된 메소드

This helps with database setup, etc.

prepare() 공개 메소드

public prepare ( $buildDir, LocalApplication $app, CliConfig $config, array $settings = [] )
$app Platformsh\Cli\Local\LocalApplication
$config Platformsh\Cli\CliConfig
$settings array

processSharedFileMounts() 보호된 메소드

For each "mount", this creates a corresponding directory in the project's shared files directory, and symlinks it into the appropriate path in the build.
protected processSharedFileMounts ( )

processSpecialDestinations() 보호된 메소드

Process the defined special destinations.

setBuildDir() 공개 메소드

public setBuildDir ( $buildDir )

setOutput() 공개 메소드

public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

프로퍼티 상세

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

protected LocalApplication,Platformsh\Cli\Local $app
리턴 Platformsh\Cli\Local\LocalApplication

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

protected string $appRoot
리턴 string

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

protected string $buildDir
리턴 string

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

protected CliConfig,Platformsh\Cli $config
리턴 Platformsh\Cli\CliConfig

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

protected bool $copy
리턴 boolean

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

protected FilesystemHelper,Platformsh\Cli\Helper $fsHelper
리턴 Platformsh\Cli\Helper\FilesystemHelper

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

protected GitHelper,Platformsh\Cli\Helper $gitHelper
리턴 Platformsh\Cli\Helper\GitHelper

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

Files from the app root to ignore during install.
protected string[] $ignoredFiles
리턴 string[]

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

protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface

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

protected array $settings
리턴 array

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

protected ShellHelperInterface,Platformsh\Cli\Helper $shellHelper
리턴 Platformsh\Cli\Helper\ShellHelperInterface

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

Special destinations for installation.
protected array $specialDestinations
리턴 array