[regression] `cv` fails on CiviCRM 5.15.0
Any command that attempts to access Civi fails with:
[RuntimeException] Cannot resolve path using "cms.root.url"
Civi 5.14.2 works fine.
The issue is
CRM_Utils_System_Drupal8::languageNegotiationURL(), which was added in 5.15.0. Removing this function restores the correct behavior, but I assume has a detrimental effect on multilingual.
The underlying cause of the error is hidden because of a later PR by @bgm that accounts for the REST API. If you roll back his change, the error becomes:
[Drupal\Core\DependencyInjection\ContainerNotInitializedException] \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.