Skip to content

Commit

Permalink
Updating Dotenv::getSettings to define generic settings based on defa…
Browse files Browse the repository at this point in the history
…ult.settings.php. Updating change log.
  • Loading branch information
dl-unleashed-technologies committed Nov 29, 2021
1 parent 6d341b0 commit eb36240
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi

## [Unreleased][unreleased]

## [0.1.2] - 2021-11-29

### Fixed

- Updating Dotenv::getSettings to define generic settings based on default.settings.php.

## [0.1.1] - 2021-11-29

### Fixed
Expand All @@ -14,6 +20,7 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi

**Initial release!**

[unreleased]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.1...main
[unreleased]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.2...main
[0.1.2]: https://github.com/unleashedtech/dotenv-drupal/releases/tag/v0.1.2
[0.1.1]: https://github.com/unleashedtech/dotenv-drupal/releases/tag/v0.1.1
[0.1.0]: https://github.com/unleashedtech/dotenv-drupal/releases/tag/v0.1.0
12 changes: 8 additions & 4 deletions src/Dotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,14 @@ function setDatabaseName(string $database)
public function getSettings(): array
{
$envName = $this->getEnvironmentName();
$defaultSettingsFile = $this->getAppPath() . '/sites/default/default.settings.php';
if (file_exists($defaultSettingsFile)) {
include $this->getAppPath() . '/sites/default/default.settings.php';
}
$settings['update_free_access'] = FALSE;
$settings['file_scan_ignore_directories'] = [
'node_modules',
'bower_components',
];
$settings['entity_update_batch_size'] = 50;
$settings['entity_update_backup'] = TRUE;
$settings['migrate_node_migrate_type_classic'] = FALSE;
$settings['config_sync_directory'] = $this->getConfigSyncPath();
$settings['file_public_path'] = $this->getPublicFilePath();
$settings['file_private_path'] = $this->getPrivateFilePath();
Expand Down

0 comments on commit eb36240

Please sign in to comment.