By tunic on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
A .user.ini file has been added. This file allows PHP engines based on CGI/FastCGI SAPIs to be configured using INI directives on a per-directory basis. This similar to what .htaccess files provide when PHP is run as an Apache module.
Composer uses the Drupal scaffolding process to place the file in the Drupal root folder. Site owners who have an existing .user.ini file should rename it and add a Drupal scaffold command in composer.json to append their custom settings. It is also possible to completely exclude Drupal scaffold from overwriting .user.ini. See Using Drupal’s Composer Scaffold for more details.
Example
Before, in .user.ini:
display_startup_errors = 1
After, in composer.json and assets/my.user.ini:
…
"extra": {
"drupal-scaffold": {
"file-mapping": {
"[web-root]/.user.ini": {
"append": "assets/my.user.ini"
}
}
}
}
Impacts:
Site builders, administrators, editors
Module developers