From 92cc1a10e7412217294a07b30495712d238a679b Mon Sep 17 00:00:00 2001 From: unocha-jenkins Date: Thu, 4 Jan 2024 06:52:39 +0000 Subject: [PATCH] chore: Update all outdated drupal/* packages. --- html/robots.txt | 10 ++++++- html/sites/default/default.services.yml | 2 ++ html/sites/default/default.settings.php | 37 +++++++++++++++++++------ html/sites/example.settings.local.php | 4 --- 4 files changed, 40 insertions(+), 13 deletions(-) diff --git a/html/robots.txt b/html/robots.txt index ebcd04b96..3ad8e2e8d 100644 --- a/html/robots.txt +++ b/html/robots.txt @@ -37,7 +37,15 @@ Allow: /profiles/*.svg Disallow: /core/ Disallow: /profiles/ # Files -Disallow: /README.txt +Disallow: /README.md +Disallow: /composer/Metapackage/README.txt +Disallow: /composer/Plugin/ProjectMessage/README.md +Disallow: /composer/Plugin/Scaffold/README.md +Disallow: /composer/Plugin/VendorHardening/README.txt +Disallow: /composer/Template/README.txt +Disallow: /modules/README.txt +Disallow: /sites/README.txt +Disallow: /themes/README.txt Disallow: /web.config # Paths (clean URLs) Disallow: /admin/ diff --git a/html/sites/default/default.services.yml b/html/sites/default/default.services.yml index 8a6cdf2f7..c4b964fc2 100644 --- a/html/sites/default/default.services.yml +++ b/html/sites/default/default.services.yml @@ -214,6 +214,8 @@ parameters: # Configure requests allowed from specific origins. Do not include trailing # slashes with URLs. allowedOrigins: ['*'] + # Configure requests allowed from origins, matching against regex patterns. + allowedOriginsPatterns: [] # Sets the Access-Control-Expose-Headers header. exposedHeaders: false # Sets the Access-Control-Max-Age header. diff --git a/html/sites/default/default.settings.php b/html/sites/default/default.settings.php index c0b18427a..d69b1865e 100644 --- a/html/sites/default/default.settings.php +++ b/html/sites/default/default.settings.php @@ -78,8 +78,8 @@ * @code * $databases['default']['default'] = [ * 'database' => 'databasename', - * 'username' => 'sqlusername', - * 'password' => 'sqlpassword', + * 'username' => 'sql_username', + * 'password' => 'sql_password', * 'host' => 'localhost', * 'port' => '3306', * 'driver' => 'mysql', @@ -194,8 +194,8 @@ * $databases['default']['default'] = [ * 'driver' => 'pgsql', * 'database' => 'databasename', - * 'username' => 'sqlusername', - * 'password' => 'sqlpassword', + * 'username' => 'sql_username', + * 'password' => 'sql_password', * 'host' => 'localhost', * 'prefix' => '', * ]; @@ -205,7 +205,7 @@ * @code * $databases['default']['default'] = [ * 'driver' => 'sqlite', - * 'database' => '/path/to/databasefilename', + * 'database' => '/path/to/database_filename', * ]; * @endcode * @@ -216,12 +216,33 @@ * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', * 'database' => 'databasename', - * 'username' => 'sqlusername', - * 'password' => 'sqlpassword', + * 'username' => 'sql_username', + * 'password' => 'sql_password', * 'host' => 'localhost', * 'prefix' => '', * ]; * @endcode + * + * Sample Database configuration format for a driver that is extending another + * database driver. + * @code + * $databases['default']['default'] = [ + * 'driver' => 'my_driver', + * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', + * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', + * 'database' => 'databasename', + * 'username' => 'sql_username', + * 'password' => 'sql_password', + * 'host' => 'localhost', + * 'prefix' => '', + * 'dependencies' => [ + * 'parent_module' => [ + * 'namespace' => 'Drupal\parent_module', + * 'autoload' => 'core/modules/parent_module/src/', + * ], + * ], + * ]; + * @endcode */ /** @@ -567,7 +588,7 @@ * the output of phpinfo(). The full output can contain sensitive information * so by default Drupal removes some sections. * - * This behaviour can be configured by setting this variable to a different + * This behavior can be configured by setting this variable to a different * value corresponding to the flags parameter of phpinfo(). * * If you need to expose more information in the report - for example to debug a diff --git a/html/sites/example.settings.local.php b/html/sites/example.settings.local.php index 7cb0e6857..bfe061d05 100644 --- a/html/sites/example.settings.local.php +++ b/html/sites/example.settings.local.php @@ -29,11 +29,7 @@ * It is strongly recommended that you set zend.assertions=1 in the PHP.ini file * (It cannot be changed from .htaccess or runtime) on development machines and * to 0 or -1 in production. - * - * @see https://wiki.php.net/rfc/expectations */ -assert_options(ASSERT_ACTIVE, TRUE); -assert_options(ASSERT_EXCEPTION, TRUE); /** * Enable local development services.