* 6.4:
[HttpKernel] Reset router locale to default when finishing main request
Only decrement pendingRequests when it's more than zero
[Dotenv] Fix self-referencing variables with defaults and env key resolution during deferred expansion
Improve Bulgarian translations in validators.bg.xlf
[Cache] Fix ChainAdapter ignoring item expiry when propagating to earlier adapters
[Form] Fix typed property initialization in ValidatorExtension
[Messenger] Fix duplicate pending messages in Redis transport with batch handlers
Fix deprecation notices for "@method" annotations when implementing interfaces directly
* 6.4:
[Dotenv] Fix double-unescaping of backslashes during deferred variable resolution
[Dotenv] Fix escaped dollar signs lost during deferred variable resolution
Bump Symfony version to 6.4.36
Update VERSION for 6.4.35
Update CONTRIBUTORS for 6.4.35
Update CHANGELOG for 6.4.35
* 6.4:
[WebProfilerBundle] Cleanup whitespace
[Validator] Regex bypass when match is false with too big input
gracefully handle the kernel.runtime_mode.web parameter missing
[Mailer] Rewrite "rebanded" to "re-branded"
[DependencyInjection] Fix TypeError when using a custom container base class with typed $parameterBag
[Dotenv] Defer variable and command expansion to account for overrides from subsequent .env files
Bump Symfony version to 6.4.35
Update VERSION for 6.4.34
Update CONTRIBUTORS for 6.4.34
Update CHANGELOG for 6.4.34
* 7.1:
[TwigBridge] Remove `VersionAwareTest` from `AbstractLayoutTestCase`
[DependencyInjection] Add coverage for error cases of `LazyClosure` and `AutowireLocator`
[TwigBridge] Fixed a parameterized choice label translation
Fix extracting of message from ->trans() method with named params
[TwigBridge] Remove usage of Node() instantiations
Update security.bg.xlf
[Dotenv] Default value can be empty
[Emoji] Update data to support emoji 16
Add missing Albanian translations for Security and Validator components
[HttpClient] Add `crypto_method` to scoped client options
suppress proc_open errors
[DependencyInjection] Fix `XmlFileLoader` not respecting when env for services
* 6.4:
[TwigBridge] Remove usage of Node() instantiations
Update security.bg.xlf
[Dotenv] Default value can be empty
[Emoji] Update data to support emoji 16
* 7.1:
[Process] minor fix
[Process] Fix finding executables independently of open_basedir
[HttpKernel] Skip logging uncaught exceptions in ErrorHandler, assume $kernel->terminateWithException() will do it
[Serializer] Fix for method named `get()`
[Notifier][TurboSMS] Process partial accepted response from transport
parse empty sequence elements as null
[HttpClient] Fix setting CURLMOPT_MAXCONNECTS
throw a meaningful exception when parsing dotenv files with BOM
[FrameworkBundle] Fix schema & finish incomplete tests for lock & semaphore config
[Cache] Fix RedisSentinel params types
[FrameworkBundle] Fix service reset between tests
[Uid][Serializer][Validator] Mention RFC 9562
make sure temp files can be cleaned up on Windows
* 6.4:
[Serializer] Fix for method named `get()`
[Notifier][TurboSMS] Process partial accepted response from transport
[HttpClient] Fix setting CURLMOPT_MAXCONNECTS
throw a meaningful exception when parsing dotenv files with BOM
[FrameworkBundle] Fix schema & finish incomplete tests for lock & semaphore config
[Cache] Fix RedisSentinel params types
[FrameworkBundle] Fix service reset between tests
[Uid][Serializer][Validator] Mention RFC 9562
make sure temp files can be cleaned up on Windows
* 5.4:
[HttpClient] Fix setting CURLMOPT_MAXCONNECTS
throw a meaningful exception when parsing dotenv files with BOM
[Cache] Fix RedisSentinel params types
[FrameworkBundle] Fix service reset between tests
[Uid][Serializer][Validator] Mention RFC 9562
make sure temp files can be cleaned up on Windows
* 7.0:
List CS fix in .git-blame-ignore-revs
Fix implicitly-required parameters
minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
Fix bad merge
List CS fix in .git-blame-ignore-revs
Fix implicitly-required parameters
List CS fix in .git-blame-ignore-revs
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
[Messenger][AmazonSqs] Allow async-aws/sqs version 2
This PR was merged into the 7.1 branch.
Discussion
----------
[Dotenv] Add `SYMFONY_DOTENV_PATH`, consumed by `debug:dotenv` for custom `.env` path
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | Fix#47880
| License | MIT
Continuation of #47901
Introduce `SYMFONY_DOTENV_PATH` set by DotEnv class and read by the `debug:dotenv` command to contextualize the debug info with the file that was actually parsed.
The custom path can be set in many ways:
- Doing a call to `(new Dotenv())->bootEnv(dirname(__DIR__).'my/custom/path/to/.env');`
- In `composer.json`: `"extra": { "runtime": { "dotenv_path": "my/custom/path/to/.env" }`
- With the env var: `$_SERVER['APP_RUNTIME_OPTIONS'] = ['dotenv_path' => 'my/custom/path/to/.env'];`
The dotenv file can be outside of the `project_dir`.
Commits
-------
52b6416ff9 DotEnv debug command aware of custom dotenv_path
* 7.0:
[VarDumper] Fix CSS alignment in HtmlDumper
allow environment variables starting with an underscore
Update a test
[PsrHttpMessageBridge] Fix links in composer.json
[Mailer][Postmark] Add missing changelog for webhook support
[HttpKernel] fix "Cannot redeclare renderSymfonyLogoSvg()" inside phpunit tests
Remove #StandWithUkraine
[Notifier][Smsc] Require login and password
Introduce SYMFONY_DOTENV_PATH set by DotEnv class and read by debug:dotenv command
to contextualize the debug info with the file that was actually parsed.
* 5.4:
[5.4] Remove unused test fixtures
[Dotent] Add PHPDoc for `$overrideExistingVars`
[SecurityBundle] Fix missing login-link element in xsd schema
[Validator] Add missing Chinese translations #51934
[Serializer] Fix using `DateIntervalNormalizer` with union types
[Validator] fix: add missing translations for for Thai (th)
fix#52273 [doctrine-messenger] DB table locks on messenger_messages with many failures
[Serializer] Handle defaultContext for DateTimeNormalizer
[CI] Add step to verify symfony/deprecation-contracts requirements
* 5.4:
[Serializer] Fix CsvEncoder decode on empty data
[Tests] Migrate data providers to static ones
stop using assertObjectHasAttribute()/assertObjectHasNotAttribute()
[Dotenv] Fix phpdoc Dotenv
[Config] Fix phpdoc nullable
Fix some typos
* 6.0: (27 commits)
[DoctrineBridge] fix tests
[HttpKernel] Fix session test cases for symfony
[FrameworkBundle] Fix missing arguments when a serialization default context is bound
[Runtime] Fix --env and --no-debug with dotenv_overload
[Cache] fix merge
cs fix
[Finder] Fix finding VCS re-included files in excluded directory
[Yaml] Improve the deprecation warnings for octal numbers to suggest migrating
Fix Choice constraint with associative choices array
[Form] UrlType should not add protocol to emails
[Dotenv] Fix bootEnv() override with .env.local.php when the env key already exists
Silence isatty warnings during tty detection
[Serializer] Fix AbstractObjectNormalizer not considering pseudo type false
[Notifier] Fix encoding of messages with FreeMobileTransport
[Cache] workaround PHP crash
[Console] Fix PHP 8.1 deprecation in ChoiceQuestion
[HttpKernel] Fix compatibility with php bridge and already started php sessions
[Notifier] smsapi-notifier - correct encoding
Replaced full CoC text with link to documentation
Making the parser stateless
...
* 5.4: (21 commits)
[Finder] Fix finding VCS re-included files in excluded directory
[Yaml] Improve the deprecation warnings for octal numbers to suggest migrating
Fix Choice constraint with associative choices array
[Form] UrlType should not add protocol to emails
[Dotenv] Fix bootEnv() override with .env.local.php when the env key already exists
Silence isatty warnings during tty detection
[Serializer] Fix AbstractObjectNormalizer not considering pseudo type false
[Notifier] Fix encoding of messages with FreeMobileTransport
[Cache] workaround PHP crash
[Console] Fix PHP 8.1 deprecation in ChoiceQuestion
[HttpKernel] Fix compatibility with php bridge and already started php sessions
[Notifier] smsapi-notifier - correct encoding
Replaced full CoC text with link to documentation
Making the parser stateless
[Console] fix restoring stty mode on CTRL+C
fix merge (bis)
fix merge
[Process] Avoid calling fclose on an already closed resource
[GHA] test tty group
[DI] Fix tests on PHP 7.1
...
* 6.0:
[6.0] cs fixes
[5.4] cs fixes
[5.3] cs fixes
[Cache] Fix saving items with no expiration through ProxyAdapter
CS fixes
fix merge
Remove pointless assignment
[HttpClient] Fix tracing requests made after calling withOptions()
[Cache] disable lock on CLI
Revert "feature #41989 [Cache] make `LockRegistry` use semaphores when possible (nicolas-grekas)"
[HttpKernel] fix how configuring log-level and status-code by exception works
[VarDumper] add more "transient-on-macos" groups
* 5.4:
[5.4] cs fixes
[5.3] cs fixes
[Cache] Fix saving items with no expiration through ProxyAdapter
CS fixes
[HttpClient] Fix tracing requests made after calling withOptions()
[Cache] disable lock on CLI
Revert "feature #41989 [Cache] make `LockRegistry` use semaphores when possible (nicolas-grekas)"
[HttpKernel] fix how configuring log-level and status-code by exception works
[VarDumper] add more "transient-on-macos" groups
* 5.3:
[5.3] cs fixes
[Cache] Fix saving items with no expiration through ProxyAdapter
CS fixes
[HttpClient] Fix tracing requests made after calling withOptions()
[Cache] disable lock on CLI
[VarDumper] add more "transient-on-macos" groups
* 4.4:
[Cache] Fix saving items with no expiration through ProxyAdapter
CS fixes
[Cache] disable lock on CLI
[VarDumper] add more "transient-on-macos" groups