Skip to content

Conversation

@stof
Copy link
Collaborator

@stof stof commented Jun 13, 2025

Those methods still need to consider BC impact for now until the next major version, but this will reduce the public API surface in the future.

Those methods still need to consider BC impact for now until the next
major version, but this will reduce the public API surface in the
future.
@stof stof requested a review from garak June 13, 2025 14:47
use Twig\Extension\RuntimeExtensionInterface;

/**
* @final since 3.8.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The MenuRuntimeExtension itself cannot become @internal as its instantiation has to be a public API to be usable by projects registering the runtime into Twig (KnpMenuBundle in the common case, but that's still a separate package), but all the methods can be @internal as they are only meant to be referenced by the MenuExtension as implementation of the (public) Twig callables.

@stof stof merged commit c71d441 into KnpLabs:master Jun 13, 2025
11 checks passed
@stof stof deleted the restrict_api branch June 13, 2025 15:03
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.

2 participants