This week, the upcoming Symfony 5.1 version improved error messages in failing tests, added new form theme blocks to customize collections and the entire codebase started using the new get_debug_type() function thanks to the PHP 8 polyfill.
Symfony development highlights
This week, 63 pull requests were merged (44 in code and 19 in docs) and 42 issues were closed (25 in code and 17 in docs). Excluding merges, 29 authors made 3,926 additions and 1,211 deletions. See details for code and docs.
- 78b11a5: [FrameworkBundle] start session on flashbag injection
- e29cdb7, 2baa812: fixed quotes in exception messages
- 2c4c19c: [PropertyAccess] improved errors when reading uninitialized properties
- 5f364af: [VarDumper] fixed side-effect by not using mt_rand()
- 98da88f: [Process] prevent warning in proc_open()
- bd1aaf1: [Console] fallback to default answers when unable to read input
- 7baec32: [DependencyInjection] fixed CheckTypeDeclarationPass
- abefccf: [Security] don't require the session to be started when tracking its id
- e457b24: [DependencyInjection] fixed preloading script generation
- efb4a7f: [FrameworkBundle] fixed deprecation message for booting a kernel twice
- 7866144: [FrameworkBundle] fixed router cache
- 8397eb7: [Security] fixed hardcoded value of SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE
- 16ed2b9: [Notifier] added unit tests
- d5c4ba9: [HttpClient] made HttpClient::create() return an AmpHttpClient when amphp/http-client is found but curl is not or too old
- 1897e03: [PhpUnitBridge] deprecate @expectedDeprecation annotation
- 693cf11: [ErrorHandler] better error messages in failing tests
- 0fb0371: [DependencyInjection] skip untyped properties in AutowireRequiredPropertiesPass
- e0bddee: [Form] added a "choice_filter" option to ChoiceType
- 06a1a1b: [Form] correctly round model with PercentType and add a rounding_mode option
- b4f03d0: [Validator] add AtLeastOne constraint and validator
- 34583b7: [String] add AbstractString::containsAny()
- c650fe6: leverage PHP8's get_debug_type()
- c0ee02b: [Form] added "collection_entry" block prefix to CollectionType entries
- 6902a56: [PropertyAccess] added missing new args in PropertyAccessorBuilder
- e383b41: [FrameworkBundle, PropertyAccess] use injection for info extractors
- cda20aa: [FrameworkBundle, PropertyAccess] add missing argument placeholders
- 836a72a: [Form] removed _false_is_empty flag in CheckboxType
- 7e181b9: [FrameworkBundle, Routing] add link to source to router:match
- 80672fb: [Uid] minor improvements
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.13.0, 4.13.1, 4.13.2, and 4.13.3 versions with the following changes:
- Initial alpha support for ARM
- Reveal global
ansi
,no-ansi
andno-interaction
flags - Add support for
NO_COLOR
env var (https://no-color.org/) - Fix
SYMFONY_*
environment values might not be read if flags are provided on the command line - Add
clone-parent-data
flag onenv:create
to enable/disable parent data cloning - Add
if-not-exists
flag onenv:create
to not fail when the environment already exists - Improve automatic detection of parent environment in
env:create
- Fix panic in
env:create
when specifying parent environment - Fix "no matching environment found for this project" error during
env:create
or when using theenvironment
flag - Fix
bin/phpunit
is not found when runningsymfony new
on Windows
Newest issues and pull requests
- [RFC] Injecting DTO into controller actions (DTOArgumentValueResolver)
- [Uid] integration with the other components
- [HttpFoundation] Easy customizable Cache-Control
- Chain of Responsibilty in service definition
- Prefix route path when extends are apply to parent controller
- Check available parameters in lint:container command
They talked about us
- Manage the State of a Symfony-React application with MobX
- Symfony, the not magic parts
- Statie is Dead, Long live Symfony Static Dumper
- Integrating Netgen Layouts with content source like Contentful, eZ Platform, Sylius or other — part 1
- Nuevo en Symfony 5.1: Prioridad en las anotaciones de rutas
- Nuevo en Symfony 5.1: Seguridad más sencilla
- Nuevo en Symfony 5.1: Mejoras en el servicio UriSigner
- Nuevo en Symfony 5.1: Validador Hostname
- Nuevo en Symfony 5.1: Mejoras en los workflows
Call to Action
- Follow Symfony on Twitter and retweet this article.
- Subscribe to the Symfony blog RSS and never miss a Symfony story again.