Ramatou Adamou Issa

Ramatou Adamou Issa

  • Experiences
  • Formation
  • Musics
  • Blog

›Recent Posts

Recent Posts

  • Watchtower, container for updating docker images
  • PHP8 (Migrating existing PHP7 project to PHP8)
  • What news in Symfony 5
  • Command Query Segregation Responsibility (CQRS)
  • AFUP conference feedbacks

What news in Symfony 5

January 28, 2020

Ramatou Adamou Issa

Introduction

It's been too long since my last post, on CQRS. Today I'm going to list some new features that Symfony 5 brings us.

Upgrade Symfony Version from 4.4 to 5

During the update of my project from Symfony 4.3 to Symfony 5, I learned a little detail about Composer.json file. In fact, my composer.json file has an extra object in which I had specified the version of my current Symfony.

{
    "extra": {
        "symfony": {
            "id": "02C1TW989CK77ZA7B2H4HC9WAG",
            "allow-contrib": true,
            "require": "4.3.*"
        }
    }
}

Theses few lines ("require": "4.3."), locked the Symfony version to the latest version of 4.3. This means that when you run composer update like this

composer update symfony/*

All updated versions of components will be the latest version of Symfony 4.3, which means 4.3.9. So with these lines of code, your composer update will never update your Symfony version to 4.4.

Also, knowing that Symfony minor version never breaks backward compatibility, before upgrading to 5, it is necessary to upgrade 4.3 to 4.4. In this case, you can be able to fix all deprecated before using a new major version.

The other features are coming soon...

Tweet
Recent Posts
  • Introduction
  • Upgrade Symfony Version from 4.4 to 5
Ramatou Adamou Issa
Ramatou Adamou Issa
HomeExperiencesFormation
Social Networks
InstagramTwitterChat
Accounts
Gallery photoBlogGitHubStar
Copyright © 2025 Ramazaki