Mirror del blog di Symfony

New in Symfony 4.2: PDO-based lock storage

Contributed by Jérémy Derussé in #27456. The Lock component was introduced in Symfony 3.4 to create and manage locks, a mechanism to provide exclusive access to a shared resource. Out of the box it supports different storages for local locks (files, semaphores) and distributed locks (Memcache, Redis). In Symfony 4.2 we’ve added a new PDO-based…

New in Symfony 4.2: Autowiring by type and name

Contributed by Nicolas Grekas in #28234. In modern Symfony applications, thanks to service autowiring and service autoconfiguration, there’s no need to configure most (or any) of your services. However, in some edge-cases you may need to tell Symfony which exact service should be injected into other services. This is solved with local binding which allows…

Meet our new official family member: SymfonyCasts!

We’ve been teasing it for the past 2 weeks and we loved your guesses! A lot of you somehow knew which long-time friend we were talking about. As of today, we are extremely excited and honored to welcome SymfonyCasts to the Symfony family. And, you probably already know them as KnpUniversity. Its team, videos, and…

A Week of Symfony #611 (10-16 September 2018)

This week Symfony introduced Symfony Panther, a new browser testing and web scraping library for PHP. Meanwhile, the SymfonyCon Lisbon 2018 conference announced its full schedule: part 1, part 2 and part 3. Symfony development highlights 2.8 changelog: 0417d6c: [Console] fixed corrupt error output for unknown multibyte short option e40bb0f: [Validator] added Japanese translations 4.1…

New in Symfony 4.2: DivisibleBy constraint

Contributed by Colin O’Dell in #28069. In Symfony 4.2, the Validator component has introduced a new DivisibleBy constraint to check whether one number is a multiple of ("divisible by") some other number. It’s mostly useful for enforcing specific increments on a number: 1 2 3 4 5 6 7 8 9 10 11 12 13…

New in Symfony 4.2: Simpler functional tests

Symfony 4.2 will be released in November 2018. This is the first article of the series that shows the most important new features introduced by this Symfony version. Contributed by Viktor Novikov in #27807. In Symfony apps, functional tests use a PHP-based client provided by the BrowserKit component to simulate a browser and perform HTTP…

A Week of Symfony #610 (3-9 September 2018)

This week, the upcoming Symfony 4.2 version merged lots of new features in preparation for its “feature freeze” at the end of this month: a new intl formatter for the Translation component, SameSite cookie support, a new PDO-based lock store and the Messenger component was made final. Symfony development highlights 2.8 changelog: cf359c2: [HttpKernel, FrameworkBundle]…

A week of symfony #609 (27 August – 2 September 2018)

This week, Symfony 2.8.45, 3.4.15 and 4.1.4 maintenance versions were released. In addition, we improved performance of AbstractObjectNormalizer in the Serializer component and we improved RedisCluster performance in the Cache component. Finally, we added a new “auto” mode the for cookie_secure option and introduced a new VarExporter component. Symfony development highlights 2.8 changelog: b547855: [HttpFoundation]…