PHP

New in Symfony 8.2: Lock Improvements

Symfony 8.2 improves its Lock component with a new #[Lock] attribute for controllers and better support for database advisory locks, which the server keeps in memory, ties to a connection and releases automatically when that connection ends. Advisory locks were previously limited to PostgreSQL. Contributed by Ryan Pon, two new stores based on MySQL user-level locks, MysqlStore (PDO) and DoctrineDbalMysqlStore (Doctrine DBAL), bring them to MySQL and MariaDB, enabled by adding +advisory to the DSN scheme.

AI-written summary, checked against the cited sources. How summaries work

Image: Symfony Blog

Read at Symfony Blog

Release

Version
8.2
Released
Release notes
Symfony Blog