@trigger_error('Passing the database connection as the first argument to '.__METHOD__.' is deprecated in drupal:8.8.0 and will throw a fatal error in drupal:9.0.0. Pass the config factory first. See https://www.drupal.org/node/3070148',E_USER_DEPRECATED);
if(!$config_factoryinstanceofConnection){
thrownew\InvalidArgumentException("The first argument to ".__METHOD__." should be an instance of \Drupal\Core\Config\ConfigFactoryInterface, ".gettype($config_factory)." given.");
@trigger_error('Not passing the $config_factory parameter to '.__METHOD__.' is deprecated in drupal:8.4.0 and will trigger a fatal error in drupal:9.0.0. See https://www.drupal.org/project/drupal/issues/2801777',E_USER_DEPRECATED);
* Tests passing legacy arguments to FileUsageBase::__construct().
*
* @expectedDeprecation Not passing the $config_factory parameter to Drupal\file\FileUsage\FileUsageBase::__construct is deprecated in drupal:8.4.0 and will trigger a fatal error in drupal:9.0.0. See https://www.drupal.org/project/drupal/issues/2801777
* Tests passing legacy arguments to DatabaseFileUsageBackend::__construct().
*
* @expectedDeprecation Passing the database connection as the first argument to Drupal\file\FileUsage\DatabaseFileUsageBackend::__construct is deprecated in drupal:8.8.0 and will throw a fatal error in drupal:9.0.0. Pass the config factory first. See https://www.drupal.org/node/3070148