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

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

공개 메소드들

메소드 설명
build ( )
detect ( $appRoot )
getKey ( )
install ( )
isDrupal ( string $directory, mixed $depth = '< 2' ) : boolean Detect if there are any Drupal applications in a folder.

보호된 메소드들

메소드 설명
buildInProfileMode ( string $profileName ) Build in 'profile' mode: the application contains a site profile.
buildInProjectMode ( string $projectMake ) Build in 'project' mode, i.e. just using a Drush make file.
checkIgnored ( string $filename, string $suggestion = null ) Check that an application file is ignored in .gitignore.
findDrushMakeFile ( boolean $required = false, boolean $core = false ) : string | false Find the preferred Drush Make file in the app root.
getDrushFlags ( ) : array Set up options to pass to the drush commands.
getDrushHelper ( ) : DrushHelper
processSettingsPhp ( ) Handle a custom settings.php file for project and profile mode.

메소드 상세

build() 공개 메소드

public build ( )

buildInProfileMode() 보호된 메소드

Build in 'profile' mode: the application contains a site profile.
protected buildInProfileMode ( string $profileName )
$profileName string

buildInProjectMode() 보호된 메소드

Build in 'project' mode, i.e. just using a Drush make file.
protected buildInProjectMode ( string $projectMake )
$projectMake string

checkIgnored() 보호된 메소드

Check that an application file is ignored in .gitignore.
protected checkIgnored ( string $filename, string $suggestion = null )
$filename string
$suggestion string

detect() 공개 메소드

public detect ( $appRoot )

findDrushMakeFile() 보호된 메소드

Find the preferred Drush Make file in the app root.
protected findDrushMakeFile ( boolean $required = false, boolean $core = false ) : string | false
$required boolean
$core boolean
리턴 string | false The absolute filename of the make file.

getDrushFlags() 보호된 메소드

Set up options to pass to the drush commands.
protected getDrushFlags ( ) : array
리턴 array

getDrushHelper() 보호된 메소드

protected getDrushHelper ( ) : DrushHelper
리턴 Platformsh\Cli\Helper\DrushHelper

getKey() 공개 메소드

public getKey ( )

install() 공개 메소드

public install ( )

isDrupal() 공개 정적인 메소드

Detect if there are any Drupal applications in a folder.
public static isDrupal ( string $directory, mixed $depth = '< 2' ) : boolean
$directory string
$depth mixed
리턴 boolean

processSettingsPhp() 보호된 메소드

If the user has a custom settings.php file, and we symlink it into sites/default, then it will probably fail to pick up settings.local.php from the right place. So we need to copy the settings.php instead of symlinking it. See https://github.com/platformsh/platformsh-cli/issues/175
protected processSettingsPhp ( )