Skip to content

Commit c2a0f39

Browse files
Changed Dotenv::getPublicFilePath to return a relative path, as required by Drupal. Standardizing env var documentation. Updating change log.
1 parent 571740a commit c2a0f39

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
44

55
## [Unreleased][unreleased]
66

7+
## [0.1.6] - 2021-12-01
8+
9+
### Fixed
10+
11+
- Changed Dotenv::getPublicFilePath to return a relative path, as required by Drupal.
12+
713
## [0.1.5] - 2021-11-30
814

915
### Changed
@@ -39,7 +45,8 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
3945

4046
**Initial release!**
4147

42-
[unreleased]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.5...main
48+
[unreleased]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.6...main
49+
[0.1.3]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.5...0.1.6
4350
[0.1.3]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.4...0.1.5
4451
[0.1.3]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.3...0.1.4
4552
[0.1.3]: https://github.com/unleashedtech/dotenv-drupal/compare/0.1.2...0.1.3

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ Environment variables can be set in `.env` files, or via modifying server config
6464
For production environments, environment variables should ideally be defined via server
6565
configuration.
6666

67-
* [Database Configuration](#database-configuration)
68-
* [Solr Configuration](#solr-configuration)
67+
* [DATABASE_URL](#database_url)
68+
* [SOLR_URL](#solr_url)
6969
* More configuration options coming soon!
7070

71-
##### Database Configuration
71+
##### DATABASE_URL
7272
The default database connection can be configured via a [DSN](https://en.wikipedia.org/wiki/Data_source_name):
7373

7474
```dotenv
@@ -87,7 +87,7 @@ For multi-site installations, do _not_ specify a database name in the ENV file(s
8787
DATABASE_URL=mysql://foo:bar@host:3306
8888
```
8989

90-
##### Solr Configuration
90+
##### SOLR_URL
9191
The default Solr connection can be configured via a [DSN](https://en.wikipedia.org/wiki/Data_source_name):
9292

9393
```dotenv

src/Dotenv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function getPrivateFilePath(): string
254254

255255
public function getPublicFilePath(): string
256256
{
257-
return $this->getAppPath() . '/sites/' . $this->getSiteName() . '/files';
257+
return 'sites/' . $this->getSiteName() . '/files';
258258
}
259259

260260
public function getConfigSyncPath(): string

0 commit comments

Comments
 (0)