diff --git a/phpBB/config/default/container/services_storage.yml b/phpBB/config/default/container/services_storage.yml
index 4223bdb2bf..b80a394ecc 100644
--- a/phpBB/config/default/container/services_storage.yml
+++ b/phpBB/config/default/container/services_storage.yml
@@ -4,8 +4,10 @@ services:
     storage.attachment:
         class: phpbb\storage\storage
         arguments:
+            - '@dbal.conn'
             - '@storage.adapter.factory'
             - 'attachment'
+            - '%tables.storage%'
         tags:
             - { name: storage }
 
@@ -25,6 +27,7 @@ services:
             - '@dbal.conn'
             - '@storage.adapter.factory'
             - 'backup'
+            - '%tables.storage%'
         tags:
             - { name: storage }