X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffile%2Fsrc%2FFileUsage%2FDatabaseFileUsageBackend.php;fp=web%2Fcore%2Fmodules%2Ffile%2Fsrc%2FFileUsage%2FDatabaseFileUsageBackend.php;h=2b1995437e2905a4734f5c107c81faab5a18f589;hp=cfb0c447a685b5d0fd82887748ee054d9957326c;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 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;