Skip to content
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

Improve the way one can deprecate a Twig callable #4291

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Sep 9, 2024

No description provided.

src/DeprecatedCallableInfo.php Outdated Show resolved Hide resolved
src/DeprecatedCallableInfo.php Show resolved Hide resolved
@fabpot fabpot force-pushed the deprecated-as-object branch 2 times, most recently from 0eb6e9c to d6656c9 Compare September 9, 2024 14:51
Copy link
Contributor

@Kocal Kocal left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! 🫶

src/DeprecatedCallableInfo.php Show resolved Hide resolved
doc/advanced.rst Outdated Show resolved Hide resolved
@fabpot fabpot force-pushed the deprecated-as-object branch 2 times, most recently from 9ac2898 to 813e932 Compare September 9, 2024 15:02
@fabpot fabpot merged commit a3496d1 into twigphp:3.x Sep 9, 2024
48 of 49 checks passed
@fabpot fabpot deleted the deprecated-as-object branch September 9, 2024 19:15
Kocal added a commit to symfony/ux that referenced this pull request Sep 11, 2024
This PR was merged into the 2.x branch.

Discussion
----------

[TwigComponent] Deprecate `cva` twig function

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Issues        | Fix #2070 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

Use the new `Twig\DeprecatedCallableInfo` added in twigphp/Twig#4291, it help us to specify the package where the alternative can be found, which was not the case before.

Commits
-------

e310074 [TwigComponent] Deprecate `cva` twig function
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Sep 12, 2024
…es if possible (xabbuh)

This PR was merged into the 5.4 branch.

Discussion
----------

[TwigBridge] use DeprecatedCallableInfo for Twig callables if possible

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

see twigphp/Twig#4291

Commits
-------

76e80d7 use DeprecatedCallableInfo for Twig callables if possible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants