Change record status: 
Project: 
Introduced in branch: 
11.2.x
Introduced in version: 
11.2.0
Description: 

The language manager service is passed now as a new parameter to the \Drupal\path_alias\AliasRepository constructor. Note that, for backward compatibility reasons, the parameter is optional. In Drupal 12.0.x it will be mandatory.

Before

In services file:

path_alias.repository:
  class: Drupal\path_alias\AliasRepository
  arguments: ['@database']

Service class:

class AliasRepository implements AliasRepositoryInterface {
  ...
  public function __construct(Connection $connection) {
    ...
  }
  ...
}

After

In services file:

path_alias.repository:
  class: Drupal\path_alias\AliasRepository
  arguments: ['@database', '@language_manager']

Service classes:

class AliasRepository implements AliasRepositoryInterface {
  ...
  public function __construct(Connection $connection, protected ?LanguageManagerInterface $languageManager = NULL) {
    ...
  }
  ...
}
Impacts: 
Site builders, administrators, editors
Module developers