File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ general:
146
146
# GitHub token to use from composer
147
147
# github_token: xxxxxx
148
148
149
+ # Set the default version of PHP CLI
150
+ # php_cli_version: 8.2
151
+
149
152
# Settings for the vagrant plugins supported by VVV
150
153
vagrant-plugins :
151
154
disksize : 10GB # requires the disk size vagrant plugin
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- DEFAULTPHP=" 8.2"
3
+ # Load config.yml
4
+ VVV_CONFIG=/srv/config/default-config.yml
5
+ if [[ -f /srv/config/config.yml ]]; then
6
+ VVV_CONFIG=/srv/config/config.yml
7
+ fi
8
+
9
+ DEFAULTPHP=$( cat ${VVV_CONFIG} | shyaml -q get-value general.php_cli_version " 8.2" )
4
10
php_version=$( readlink -f /usr/bin/php)
5
11
if [[ $php_version != * " ${DEFAULTPHP} " * ]]; then
6
12
echo " * Restoring the default PHP CLI version ( ${DEFAULTPHP} )"
You can’t perform that action at this time.
0 commit comments