首先为composer配置Drupal的源,通过Composer update 和require 解决错误。
1
Fatal error: Interface 'League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface' not found in /www/wwwroot/lightning/profiles/lightning/modules/contrib/simple_oauth/src/Repositories/AccessTokenRepository.php on line 10
a.Install the module using Composer: composer config repositories.drupal composer https://packages.drupal.org/8 && composer require drupal/simple_oauth:^3
. You can use any other installation method, as long as you install the OAuth2 Server composer package.
2
ResponseText: Error: Class 'phpDocumentor\Reflection\DocBlockFactory' not found in Drupal\lightning_core\UpdateManager->__construct() (line 76 of /www/wwwroot/lightning/profiles/lightning/modules/contrib/lightning_core/src/UpdateManager.php).
composer update