![]() ![]() If you don't, Composer will use the PHP version of the environment. Am i running the commands from the correct folder composer update drupal/core -with-dependencies drush updatedb drush cr bash-4. Running a simple composer update will also update drupal/core, all of Drupal's dependencies (to the correct tested versions), and all of your contrib modules and other dependencies. The locked version of the composer/composer package has been updated from 2.1.12 to 2.2.12. This Drupal release updates Composer to the latest version as a security hardening. Today the Composer project released a security advisory. By adding it, you are forcing Composer to operate using PHP 8.1 as the project platform. composer update drupal/core-recommended -with-dependencies This will update drupal/core and any needed dependencies. Composer is a development dependency and tool used by Drupal. composer. The next step is to update the composer.json of the project to require PHP version 8 in the platform requirements section. I can confirm that switching from drupal/core-recommended:10.1RC to drupal/core:10. composer require drupal/core-recommended:8 -no-update. ![]() 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". To update core, all outdated modules and theme, update the db, clear the cache: composer update drupal/ -with-all-dependencies drush updatedb drush. In our case, we use the Metadrop boilerplate and this in turn uses the wodby/drupal-php image. To update your site and all dependencies to the latest version of Drupal: composer update 'drupal/core-' -with-all-dependencies. 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. To start a new Drupal project with version 10.0.2: composer create-project drupal/recommended-project:10.0.2 'install-dir'. Note that previous knowledge of Docker and Drupal is required to understand the more complex steps. Features Support more than 100.000 dropdown options. 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. Provides an integration with the Virtual Select library for select form elements. 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 |