Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[ticket/17588] Move index page to controller#6903

Merged
marc1706 merged 3 commits intophpbb:masterphpbb/phpbb:masterfrom
rubencm:ticket/17588rubencm/phpbb:ticket/17588Copy head branch name to clipboard
Jan 20, 2026
Merged

[ticket/17588] Move index page to controller#6903
marc1706 merged 3 commits intophpbb:masterphpbb/phpbb:masterfrom
rubencm:ticket/17588rubencm/phpbb:ticket/17588Copy head branch name to clipboard

Conversation

@rubencm
Copy link
Member

@rubencm rubencm commented Nov 29, 2025

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-17588

@rubencm rubencm marked this pull request as draft November 29, 2025 21:57
@rubencm rubencm force-pushed the ticket/17588 branch 2 times, most recently from e8771b2 to 7dc4599 Compare December 1, 2025 21:50
@rubencm rubencm force-pushed the ticket/17588 branch 2 times, most recently from c786b6f to bbc2fcb Compare January 1, 2026 21:40
@rubencm rubencm marked this pull request as ready for review January 1, 2026 21:41
@rubencm rubencm force-pushed the ticket/17588 branch 4 times, most recently from a35ac0b to 29e78d6 Compare January 1, 2026 23:51
phpBB/phpbb/forum/birthday_helper.php Outdated Show resolved Hide resolved
phpBB/phpbb/forum/birthday_helper.php Outdated Show resolved Hide resolved
@rubencm rubencm force-pushed the ticket/17588 branch 3 times, most recently from c13da46 to f032db2 Compare January 2, 2026 18:12
@rubencm rubencm requested a review from Copilot January 2, 2026 18:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the index page functionality by moving it from a procedural script to a proper controller-based implementation, aligning with the modern architecture used for other phpBB pages.

Key Changes:

  • Created a new phpbb\forum\controller\index controller to handle index page display logic
  • Extracted birthday functionality into a dedicated phpbb\forum\birthday_helper service
  • Updated all hardcoded references to index.$phpEx throughout the codebase to use the new controller route

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
phpBB/index.php Simplified to delegate request handling to the Symfony HTTP kernel
phpBB/phpbb/forum/controller/index.php New controller implementing index page display logic
phpBB/phpbb/forum/birthday_helper.php New helper service for birthday functionality extracted from index.php
phpBB/config/default/routing/routing.yml Added route definition for the index controller
phpBB/config/default/container/services_forum.yml New service configuration file for forum-related services
phpBB/config/default/container/services.yml Imports the new services_forum.yml configuration
phpBB/config/default/container/services_ucp.yml Updated delete_cookies service to include controller.helper dependency
phpBB/config/default/container/services_mention.yml Updated mention controller service to include controller.helper dependency
phpBB/config/default/container/services_content.yml Updated message form services to include controller.helper dependency
phpBB/phpbb/members/viewonline_helper.php Added handling for phpbb_index_controller route
phpBB/phpbb/ucp/controller/delete_cookies.php Updated to use controller helper for index route generation
phpBB/phpbb/ucp/controller/reset_password.php Updated to use controller helper for index route generation
phpBB/phpbb/mention/controller/mention.php Added controller.helper dependency and updated redirect logic
phpBB/phpbb/message/form.php Added controller.helper dependency for route generation
phpBB/phpbb/message/admin_form.php Updated constructor to pass controller.helper to parent
phpBB/phpbb/notification/type/base.php Minor formatting improvement (blank line)
phpBB/includes/functions.php Updated U_INDEX template variable to use controller route
phpBB/includes/ucp/*.php Updated all index redirects to use controller route
phpBB/ucp.php Centralized controller.helper instantiation and updated all index redirects
phpBB/mcp.php Updated bot redirect to use controller route
phpBB/search.php Updated mark forums link to use controller route
phpBB/posting.php Centralized controller.helper instantiation and updated redirects
phpBB/app.php Removed extraneous empty comment block
tests/viewonline/helper_test.php Reorganized test data to group index route tests with route-based pages
tests/functional/acp_smilies_test.php Test marked as skipped
tests/functional/acp_attachments_test.php Changed self::$client->request to self::request for consistency
tests/test_framework/phpbb_functional_test_case.php Simplified mock creation by removing unnecessary constructor arguments
tests/mention/controller_test.php Added controller.helper mock dependency
tests/text_formatter/s9e/mention_helper_test.php Simplified mock creation
tests/console/user/base.php Simplified mock creation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

phpBB/phpbb/ucp/controller/reset_password.php Outdated Show resolved Hide resolved
tests/functional/acp_smilies_test.php Outdated Show resolved Hide resolved
tests/viewonline/helper_test.php Show resolved Hide resolved
phpBB/phpbb/forum/birthday_helper.php Show resolved Hide resolved
phpBB/phpbb/forum/controller/index.php Outdated Show resolved Hide resolved
@rubencm rubencm force-pushed the ticket/17588 branch 2 times, most recently from 1cafc37 to 4bbe73d Compare January 2, 2026 18:41
phpBB/phpbb/forum/birthday_helper.php Outdated Show resolved Hide resolved
@rubencm rubencm force-pushed the ticket/17588 branch 2 times, most recently from 0d20091 to 549f255 Compare January 2, 2026 21:20
@rubencm rubencm requested a review from marc1706 January 4, 2026 01:55
phpBB/includes/ucp/ucp_profile.php Outdated Show resolved Hide resolved
phpBB/phpbb/notification/type/base.php Outdated Show resolved Hide resolved
phpBB/index.php Show resolved Hide resolved
phpBB/phpbb/forum/controller/index.php Outdated Show resolved Hide resolved
phpBB/phpbb/forum/birthday_helper.php Outdated Show resolved Hide resolved
@marc1706 marc1706 merged commit 9187726 into phpbb:master Jan 20, 2026
65 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.