X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffile%2Fsrc%2FFileUsage%2FDatabaseFileUsageBackend.php;h=2b1995437e2905a4734f5c107c81faab5a18f589;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=cfb0c447a685b5d0fd82887748ee054d9957326c;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php b/web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php index cfb0c447a..2b1995437 100644 --- a/web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php +++ b/web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php @@ -2,6 +2,7 @@ namespace Drupal\file\FileUsage; +use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; use Drupal\file\FileInterface; @@ -32,8 +33,11 @@ class DatabaseFileUsageBackend extends FileUsageBase { * information. * @param string $table * (optional) The table to store file usage info. Defaults to 'file_usage'. + * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory + * (optional) The config factory. */ - public function __construct(Connection $connection, $table = 'file_usage') { + public function __construct(Connection $connection, $table = 'file_usage', ConfigFactoryInterface $config_factory = NULL) { + parent::__construct($config_factory); $this->connection = $connection; $this->tableName = $table;