diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml
index 84143a2362..fa3f64c92e 100644
--- a/phpBB/config/services.yml
+++ b/phpBB/config/services.yml
@@ -254,6 +254,12 @@ services:
             - %tables.notifications%
             - %tables.user_notifications%
 
+    pagination:
+        class: phpbb\pagination
+        arguments:
+            - @template
+            - @user
+
     path_helper:
         class: phpbb\path_helper
         arguments: