Problem/Motivation

In #3210486: Remove typo3/phar-stream-wrapper and associated code we found out deprecating class \Drupal\Core\Security\PharExtensionInterceptor using the "normal" way as described in the Drupal deprecation policy is a bit "awkward", since it will leave an unused file with unresolved classes lingering around until 11.0.0.

@andypost suggested to mark this class as @internal first in 9.4.0, so we can remove this file altogether in 10.0.0 without doing the "Deprecation Dance".

This issue is here to do just that: Mark class \Drupal\Core\Security\PharExtensionInterceptor as @internal in 9.4.0.

EDIT: As proposed by @longwave in #4 also make clear this class will be deprecated in Drupal 10.0.0

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Class \Drupal\Core\Security\PharExtensionInterceptor is marked as @internal and will be removed from Drupal 10.0.0.

Issue fork drupal-3252406

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Spokje created an issue. See original summary.

spokje’s picture

Assigned: spokje » Unassigned
Issue summary: View changes
Status: Active » Needs review
longwave’s picture

Version: 9.4.x-dev » 9.3.x-dev
Status: Needs review » Needs work

Let's also add a comment that this class will be removed in Drupal 10 and link to the relevant issue?

I also think this can go back to 9.3.x as it's a docs only change.

spokje’s picture

Issue summary: View changes
Status: Needs work » Needs review

@longwave in #4: Sense = made :)

Added this as a comment, unsure if this has to be done in the "official" deprecation format. So some eyes on that would be nice.

I _think_ a Change Record is also needed besides a comment, so I created a draft one here. This is also very much open for improvements.

Also updated TR to reflect the intent to deprecate in Drupal 10.0.0.

andypost’s picture

Version: 9.3.x-dev » 9.4.x-dev

I think it should be deprecated in 9.4.x and removed in D10

maybe it should use proper deprecation message

spokje’s picture

Tried to address points raised by @andypost.

spokje’s picture

Merged in latest commits from 9.4.x-dev.

longwave’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

The @todo here really is not necessary - we're stating that the thing is going to be removed in the deprecation. That's duplication. And the link to the issue to do the removal is not all that helpful. Also removing the original @see is wrong too. Fixed on commit.

Committed and pushed ee38989c9cf to 10.0.x and 5ebe32e539a to 9.4.x. Thanks!

  • alexpott committed ee38989 on 10.0.x
    Issue #3252406 by Spokje, longwave, andypost: Mark class \Drupal\Core\...

  • alexpott committed 5ebe32e on 9.4.x
    Issue #3252406 by Spokje, longwave, andypost: Mark class \Drupal\Core\...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.