This week, Symfony added a feature to allow container/routing configurators to vary by environment in the same file and started working on its compatibility with the upcoming PHP 8.1 version. In addition, it announced the keynotes for all SymfonyLive Online 2021 conferences and the first part of the French conference schedule.
Symfony development highlights
This week, 49 pull requests were merged (31 in code and 18 in docs) and 56 issues were closed (51 in code and 5 in docs). Excluding merges, 28 authors made 151,067 additions and 84,860 deletions. See details for code and docs.
- 0027d1c: [Cache] fix setting items' metadata on commit()
- 070f003: [Routing] fix conflict with param named class in attribute
- f3529fd: switch to non-null defaults in exception constructors
- 1688e5d: [Cache] fix Redis TLS scheme
rediss
for Redis connection - b5dc77e: [Console] handle calls to mb_ functions with non string arguments
- 91121ac: [Translation] make name attribute optional in xliff2
- b955445: [TwigBridge] install symfony/intl to run tests on Travis
- 890ada4, e141afb: Adding a Github action to run Psalm
- 3fe1564: [Cache] add server-commands support for Predis Replication Environments
- a5683c5: [HttpClient] MockResponse total_time should not be simulated when provided
- 87aeb8d: [HttpKernel] configure session.cookie_secure earlier
- 5028aaf: [FrameworkBundle] allow x-forwarded-prefix trusted header in config
- 3a2906c: [Config] switched to non-null defaults in exception constructors
- b037319: [Security] #[CurrentUser] arguments should resolve to null for anon.
- 3fe1564: [Cache] add server-commands support for Predis Replication Environments
- 858dca4: [FrameworkBundle] allow container/routing configurators to vary by env
- 304980e: [Form] remove hard dependency on symfony/intl
- b44b9aa: deprecate passing null as $message or $code to exceptions
- d54a122: [Routing] construct Route annotations using named arguments
- 1849b57: [DependencyInjection] add ContainerBuilder::willBeAvailable() to help with conditional configuration
- e2f1c46: [Uid] add Generate and Inspect commands
- d9dedb4: [HttpClient] add HttpClientInterface::withOptions()
- 59fbe57: [Messenger] add rediss:// DSN scheme support for TLS to Redis transport
- 79f6a5c: [RateLimiter, Security] allow to use no lock in the rate limiter/login throttling
- f0e076a: [HttpKernel] handle multi-attribute controller arguments
Symfony CLI
Symfony CLI is a must-have tool when developing Symfony applications on your local machine. It includes the Symfony Local Server, the best way to run local Symfony applications. This week Symfony CLI released its new 4.23.0 and 4.23.1 versions with the following changes:
- Fix a crash when known_hosts format is wrong
- Add Mercure support
- Fix PHP version detection when using
alternatives
on Linux - Add support for
MYSQL_HOST
andMYSQL_TCP_PORT
env vars
Newest issues and pull requests
- [Console] Initiative: rework the console component
- [Form] Making possible to make csrf token generation lazy for forms
- Permit integer type for default_index_method in tagged locators
- RFC: Autowiring scalar parameters
- Add Username and Password in Mailer configuration tree
They talked about us
- Using PHPStan to analyse Symfony Console Application
- Deploy Symfony app in Docker
- UrlSignerBundle, create and validate signed URLs with Symfony
- How to structure a DDD project in Symfony flex
- How to run Symfony 5 in Docker with PHP 8
- Symfony 5+ check if user is logged in inside a twig template
- Sortie de Panther 1.0 !
- UrlSignerBundle, créer et valider des URLs signées avec Symfony
- Symfony Framework ile Rest API ve Authentication
Call to Action
- Follow Symfony on Twitter and retweet this article.
- Subscribe to the Symfony blog RSS and never miss a Symfony story again.