This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 8b337fc94a feature #35308 [Dotenv] Add Dotenv::bootEnv() to check for .env.local.php before calling Dotenv::loadEnv() (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Dotenv] Add Dotenv::bootEnv() to check for .env.local.php before calling Dotenv::loadEnv()

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | yes
| Tickets       | -
| License       | MIT
| Doc PR        | -

The goal of this PR is to eventually get rid of the `config/bootstrap.php` file in Symfony 5.1 apps.
I think we've done enough iterations on that piece of bootstrapping logic to put it inside the `Dotenv` component.
This fully replaces https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/4.2/config/bootstrap.php

It doesn't conflict with current apps so they'll be fine keeping the `config/bootstrap.php` file until they're upgraded.

The new bootstrapping logic will require adding this line in `bin/console` and `public/index.php`:
```php
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
```

Recipes updated at https://github.com/symfony/recipes/pull/724

Commits
-------

98c7d3027b [Dotenv] Add Dotenv::bootEnv() to check for .env.local.php before calling Dotenv::loadEnv()
2020-01-30 13:04:33 +01:00
..
Asset Merge branch '5.0' 2020-01-04 15:20:45 +01:00
BrowserKit Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Cache feature #35362 [Cache] Add LRU + max-lifetime capabilities to ArrayCache (nicolas-grekas) 2020-01-27 11:48:06 +01:00
Config Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Console feature #35308 [Dotenv] Add Dotenv::bootEnv() to check for .env.local.php before calling Dotenv::loadEnv() (nicolas-grekas) 2020-01-30 13:04:33 +01:00
CssSelector [CssSelector] Added cache on top of CssSelectorConverter 2020-01-27 15:56:28 +01:00
DependencyInjection Merge branch '5.0' 2020-01-21 09:44:52 +01:00
DomCrawler [CssSelector] Added cache on top of CssSelectorConverter 2020-01-27 15:56:28 +01:00
Dotenv [Dotenv] Add Dotenv::bootEnv() to check for .env.local.php before calling Dotenv::loadEnv() 2020-01-28 12:41:19 +01:00
ErrorHandler Improve displaying anonymous classes 2020-01-26 14:13:42 +01:00
EventDispatcher Merge branch '5.0' 2020-01-10 22:57:55 +01:00
ExpressionLanguage Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Filesystem Merge branch '5.0' 2020-01-21 09:44:52 +01:00
Finder Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Form feature #35205 [Form] derive the view timezone from the model timezone (xabbuh) 2020-01-07 20:12:15 +01:00
HttpClient feature #35407 [HttpClient] collect the body of responses when possible (nicolas-grekas) 2020-01-22 08:06:55 +01:00
HttpFoundation Fix CS 2020-01-10 09:15:23 +01:00
HttpKernel Improve displaying anonymous classes 2020-01-26 14:13:42 +01:00
Inflector Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Intl Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Ldap Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Lock Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Mailer feature #35262 [Mailer] add ability to disable the TLS peer verification via DSN (Aurélien Fontaine) 2020-01-29 08:52:41 +01:00
Messenger [Messenger] Add TLS option to Redis transport's DSN 2020-01-29 11:43:46 +01:00
Mime Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Notifier Merge branch '5.0' 2020-01-08 18:33:57 +01:00
OptionsResolver Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Process Merge branch '5.0' 2020-01-09 10:56:45 +01:00
PropertyAccess Merge branch '5.0' 2020-01-04 15:20:45 +01:00
PropertyInfo Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Routing Merge branch '4.3' into 4.4 2020-01-08 18:29:02 +01:00
Security minor #35447 [Security] suggest a non-deprecated function replacement (xabbuh) 2020-01-23 11:58:55 +01:00
Serializer Added scalar denormalization in Serializer + added scalar normalization tests 2020-01-13 11:50:29 +03:00
Stopwatch Merge branch '5.0' 2020-01-04 15:20:45 +01:00
String Merge branch '5.0' 2020-01-21 08:39:56 +01:00
Templating Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Translation Merge branch '5.0' 2020-01-21 09:44:52 +01:00
Validator Merge branch '5.0' 2020-01-21 09:44:52 +01:00
VarDumper Improve displaying anonymous classes 2020-01-26 14:13:42 +01:00
VarExporter Merge branch '5.0' 2020-01-04 15:20:45 +01:00
WebLink Merge branch '5.0' 2020-01-04 15:20:45 +01:00
Workflow [Workflow] Added a way to not fire the annonce event 2020-01-13 14:50:42 +01:00
Yaml Merge branch '5.0' 2020-01-21 12:13:09 +01:00