Skip to content

[TwigBridge] Mark CodeExtension as @internal #52449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Nov 4, 2023

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Issues n/a
License MIT

This is really just internal code used by our own tools. Let's make it clear that nobody should use it in production.

@fabpot fabpot merged commit 68e6af4 into symfony:6.4 Nov 4, 2023
@fabpot fabpot deleted the twig-code-extensinos-internal branch November 4, 2023 10:25
@GromNaN
Copy link
Member

GromNaN commented Nov 9, 2023

Does marking this class @internal mean that we can no longer use the filters it provides for external packages?

For instance file_link is used in DoctrineBundle to render the backtrace in the profiler.
https://github.com/doctrine/DoctrineBundle/blob/42f5834825eaa967af833722c336d5dd05cbd4f3/Resources/views/Collector/db.html.twig#L283C1-L283C129

This was referenced Nov 10, 2023
fabpot added a commit that referenced this pull request Nov 18, 2023
…nicolas-grekas)

This PR was merged into the 7.0 branch.

Discussion
----------

[WebProfilerBundle] Mark CodeExtension as non-internal

| Q             | A
| ------------- | ---
| Branch?       | 7.0
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

From #52449 (comment) by `@GromNaN`

Using those twig helpers in a profiler page is 100% legit. I think that the notice in the class' docbloc + the fact it moved to the WebProfilerBundle namespace allows us to mark the class back as non-internal.

Commits
-------

b1c437a [WebProfilerBundle] Mark CodeExtension as non-internal
symfony-splitter pushed a commit to symfony/web-profiler-bundle that referenced this pull request Nov 18, 2023
…nicolas-grekas)

This PR was merged into the 7.0 branch.

Discussion
----------

[WebProfilerBundle] Mark CodeExtension as non-internal

| Q             | A
| ------------- | ---
| Branch?       | 7.0
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

From symfony/symfony#52449 (comment) by `@GromNaN`

Using those twig helpers in a profiler page is 100% legit. I think that the notice in the class' docbloc + the fact it moved to the WebProfilerBundle namespace allows us to mark the class back as non-internal.

Commits
-------

b1c437a759a [WebProfilerBundle] Mark CodeExtension as non-internal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants