Remove custom statistics.php front controller

Created on 13 July 2014, almost 10 years ago
Updated 30 April 2024, about 2 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 7 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.69.0 2024