If you don't, Composer will use the PHP version of the environment. By adding it, you are forcing Composer to operate using PHP 8.1 as the project platform. The next step is to update the composer.json of the project to require PHP version 8 in the platform requirements section. You will need to edit the docker-compose.yml file or the one that defines the containers you are using in your project. ![]() All the tags are listed in Docker Hub, where we have to locate the one that matches the version we are going to have in our production environment.Īs an example, we are looking for PHP version 8.1.9, the tag we get from Docker Hub is "8.1-dev-4.37.9". As an organization, implementing and maintaining security measures on your own can be very expensive. In our case, we use the Metadrop boilerplate and this in turn uses the wodby/drupal-php image. Drupal 7 and 9 will become obsolete as of November 2023, and having an outdated version of Drupal or any unsecured CMS means your website is more prone to downtimes and bugs. Our development environments are based on Docker, so the first thing you have to do, which is fundamental, is to change the PHP image so that Docker can use the appropriate PHP 8 container. As for the security team working on the core and community. Note that previous knowledge of Docker and Drupal is required to understand the more complex steps. The Drupal team will therefore no longer propose any evolutions or patches related to this version. The good thing is that since we specified an entity key for the. ![]() Keep in mind that we are going to focus on updating a Composer project based on Metadrop Drupal boilerplate, but these steps can be applied to other Drupal-based Composers. Build modules and themes using the latest version of Drupal 8, 2nd Edition Daniel Sipos. Prerequisites Make sure your core, as well as your contrib, is at the latest version (composer update) Remove unused modules first from your composer.json. Drupal 9 and 10 development will continue in 9.5.x and 10.0.x after that date. ![]() We have decided to compile in this post the necessary steps to make our Drupal applications compatible with this PHP version, providing our experience for those who might need it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |