8000 Fix Symfony CLI to work with Platform.sh CLI v4.x (#253) · symfony-cli/symfony-cli@d6213b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6213b7

Browse files
authored
Fix Symfony CLI to work with Platform.sh CLI v4.x (#253)
* Use PLATFORMSH_CLI_NO_INTERACTION=1 to make sure the migration message is not displayed during installation * Use PLATFORMSH_CLI_WRAPPED=1 to make sure migration messages are not shown when running the CLI Fix #252
1 parent 4d2117a commit d6213b7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

commands/platformsh.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ func (p *platformshCLI) executor(args []string) *php.Executor {
126126
"PLATFORMSH_CLI_APPLICATION_NAME=Platform.sh CLI for Symfony",
127127
"PLATFORMSH_CLI_APPLICATION_EXECUTABLE=symfony",
128128
"XDEBUG_MODE=off",
129+
"PLATFORMSH_CLI_WRAPPED=1",
129130
}
130131
if util.InCloud() {
131132
env = append(env, "PLATFORMSH_CLI_UPDATES_CHECK=0")

local/php/platformsh.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func InstallPlatformPhar(home string) error {
5353
Dir: home,
5454
BinName: "php",
5555
Args: []string{"php", installerPath},
56+
ExtraEnv: []string{"PLATFORMSH_CLI_NO_INTERACTION=1"},
5657
SkipNbArgs: 1,
5758
Stdout: &stdout,
5859
Stderr: &stdout,

0 commit comments

Comments
 (0)
0