Remove custom statistics.php front controller

Created on 13 July 2014, over 10 years ago
Updated 30 April 2024, 8 months ago

Objective

  1. The custom statistics.php script only made sense in the past, because it skipped/omitted larger parts of Drupal's bootstrap.
  2. Like any other front controller, it has to boot a regular + full kernel/container now.
  3. The only part that is still short-circuited is the routing system, but routing is fast.
  4. The custom statistics.php script is pointless today, remove it.

Proposed solution

  1. Add a route + move the functional code from statistics.php into a controller.

  2. Remove the special RewriteRule for statistics.php from /.htaccess.

    (cf. #1587270: Forbid execution of PHP files in subfolders by default (except those needed by core) )

  3. Remove statistics.php.

📌 Task
Status

Active

Version

1.0

Component
Statistics 

Last updated 4 days ago

No maintainer
Created by

🇩🇪Germany sun Karlsruhe

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024