Skip to content

Commit eac07f5

Browse files
committed
Merge branch 'release/4.0.1'
2 parents 984776e + 193e5e1 commit eac07f5

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

RoboFileBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract class RoboFileBase extends \Robo\Tasks {
4747
protected $application_root = "/code/web";
4848
protected $file_public_path = '/shared/public';
4949
protected $file_private_path = '/shared/private';
50-
protected $file_temporary_path = '/shared/tmp';
50+
protected $file_temp_path = '/shared/tmp';
5151
protected $services_yml = "web/sites/default/services.yml";
5252
protected $settings_php = "web/sites/default/settings.php";
5353

@@ -199,7 +199,7 @@ public function buildMake($flags = '') {
199199
* Set the owner and group of all files in the files dir to the web user.
200200
*/
201201
public function buildSetFilesOwner() {
202-
foreach ([$this->file_public_path, $this->file_private_path, $this->file_temporary_path] as $path) {
202+
foreach ([$this->file_public_path, $this->file_private_path, $this->file_temp_path] as $path) {
203203
$this->say("Ensuring all directories exist.");
204204
$this->_exec("mkdir -p $path");
205205
$this->say("Setting files directory owner.");

docker-compose.osx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ services:
8585
network_mode: service:web
8686

8787
selenium:
88-
image: selenium/standalone-chrome:3.141.59-oxygen
88+
image: selenium/standalone-chrome:latest
8989
network_mode: service:web
9090
volumes:
9191
- /dev/shm:/dev/shm

phpcs.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
<description>Default PHP CodeSniffer configuration for UoA projects.</description>
44
<!-- folders to scan -->
55
<file>./web/modules/custom</file>
6+
<file>./web/modules/contrib</file>
67
<file>./web/profiles</file>
78
<file>./web/themes</file>
9+
<exclude-pattern>./web/modules/contrib/(?!ua_)*</exclude-pattern>
810
<exclude-pattern>*md</exclude-pattern>
11+
<exclude-pattern>*css</exclude-pattern>
12+
<exclude-pattern>*min.js</exclude-pattern>
13+
<exclude-pattern>*vendor/*.js</exclude-pattern>
14+
<exclude-pattern>*plugins/*.js</exclude-pattern>
15+
<exclude-pattern>*dist/*.js</exclude-pattern>
916
<!-- additional arguments -->
1017
<arg name="report" value="full"/>
1118
<!-- inherit from coder -->

src/Handler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function generateSettings()
161161
" 'namespace' => getenv('DATABASE_NAMESPACE') ?: 'Drupal\\\\Core\\\\Database\\\\Driver\\\\mysql',\n" .
162162
");\n" .
163163
"\$settings['file_private_path'] = getenv('PRIVATE_DIR') ?: '/shared/private';\n" .
164-
"\$settings['file_temporary_path'] = getenv('TMP_DIR') ?: '/shared/tmp';\n" .
164+
"\$settings['file_temp_path'] = getenv('TMP_DIR') ?: '/shared/tmp';\n" .
165165
"\$settings['hash_salt'] = getenv('HASH_SALT') ?: '" . str_replace(['+', '/', '='], ['-', '_', ''], base64_encode(random_bytes(55))) . "';\n" .
166166
"\$config_directories['sync'] = DRUPAL_ROOT . '/../config-export';\n" .
167167
"\$settings['shepherd_site_id'] = getenv('SHEPHERD_SITE_ID');\n" .
@@ -210,6 +210,9 @@ public function generateSettings()
210210
" \$settings['reverse_proxy_port_header'] = getenv('SHEPHERD_REVERSE_PROXY_PORT_HEADER') ?: 'X_FORWARDED_PORT';\n" .
211211
" \$settings['reverse_proxy_forwarded_header'] = getenv('SHEPHERD_REVERSE_PROXY_FORWARDED_HEADER') ?: 'FORWARDED';\n" .
212212
"}\n" .
213+
"if (getenv('TRUSTED_HOST_PATTERNS')) {\n" .
214+
" \$settings['trusted_host_patterns'] = !empty(getenv('TRUSTED_HOST_PATTERNS')) ? explode(',', getenv('TRUSTED_HOST_PATTERNS')) : [];\n" .
215+
"}\n" .
213216
"/**\n * END SHEPHERD CONFIG\n */\n" .
214217
"\n" .
215218
"/**\n * START LOCAL CONFIG\n */\n" .

0 commit comments

Comments
 (0)