You can nudge your life in a new direction every day.

Composer commands

Submitted by admin on Tue, 10/20/2020 - 05:54

 [ErrorException]
  Trying to access array offset on value of type int

 

update composer

~# composer self-update --stable
$ composer outdated drupal/*
drupal/core            8.9.2  9.0.7  Drupal is an open source content management platform powering millions of websites and applications.
drupal/metatag         1.13.0 1.14.0 Manage meta tags for all entities.
drupal/migrate_tools   4.5.0  5.0.0  Tools to assist in developing and running migrations.
drupal/recaptcha       2.5.0  3.0.0  Protect your website from spam and abuse while letting real people pass through with ease.
drupal/search_api_solr 3.9.0  4.1.7  Offers an implementation of the Search API that uses an Apache Solr server for indexing content.

command require “drupal/<modulename>:<version> is recommended

composer require drupal/metatag

pattern

 composer outdated drupal/*
 composer require drupal/search_api_solr
  vendor/bin/drush updb
 

  vendor/bin/drush sql-dump
  drush sset system.maintenance_mode 1
  vendor/bin/drush sset system.maintenance_mode 1
    drush cr
   vendor/bin/drush cr
  composer update Drupal/core –with-dependencies
  vendor/bin/drush updb
   vendor/bin/drush cr
  vendor/bin/drush sset system.maintenance_mode 0
 

 

composer update drupal/core --with-dependencies
 1001  vendor/bin/drush updb
 1002  vendor/bin/drush cr
 1003  composer outdated drupal/*