Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[TwigBundle] Enable#[AsTwigFilter],#[AsTwigFunction] and#[AsTwigTest]#20879

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:7.3fromRisingSunLight42:fix_20828
Apr 30, 2025

Conversation

RisingSunLight42
Copy link
Contributor

@RisingSunLight42RisingSunLight42 commentedApr 12, 2025
edited
Loading

fix#20828

I did not listed theAsTwigTest attribute in the attributes list as no doc make mention of use case of this attribute. Do I had it anyway without any link to it (or a link to thetwig documentation)?

Also I hope my wording is correct, feel free to ask me any adjustment 😄

I followed the plan of@javiereguiluz

alamirault reacted with heart emoji
@carsonbotcarsonbot added this to the7.3 milestoneApr 12, 2025
@RisingSunLight42
Copy link
ContributorAuthor

I have no clue why the CI fails to build the docs, I can build it properly on my end 😞

Copy link
Member

@GromNaNGromNaN left a comment

Choose a reason for hiding this comment

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

I've added a few comments. I find it hard to juggle the old and new ways of doing things in the same doc without making it too complex to understand; but it looks fine to me the way it is.

@RisingSunLight42
Copy link
ContributorAuthor

Thanks for the comment GromNan, it's very appreciated especially since I'm still new to the doc repository. I'm slowly starting to get the hang of how to write it 🎉. I'll apply your suggestions tomorrow 😄

@OskarStarkOskarStark changed the title[TwigBundle] Enable #[AsTwigFilter], #[AsTwigFunction] and#[AsTwigTest][TwigBundle] Enable#[AsTwigFilter],#[AsTwigFunction] and#[AsTwigTest]Apr 24, 2025
@@ -123,6 +123,8 @@ Twig
~~~~

* :ref:`Template <templates-template-attribute>`
* :ref:`AsTwigFilter <templates-twig-filter-attribute>`
* :ref:`AsTwigFunction <templates-twig-function-attribute>`
Copy link
Member

Choose a reason for hiding this comment

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

What about also adding something for the#[AsTwigTest] attribute?

Choose a reason for hiding this comment

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

I added#[AsTwigTest] to the list, but just as text, without any link to it. I think this is rare enough to not explain it and just mention that it exists. Thanks.

@@ -197,8 +190,8 @@ After creating just *one* file, you can use this immediately:
{# templates/default/index.html.twig #}
{# Will print something like "Hey Symfony!" #}
<h1>{{ name|greet }}</h1>

How does this work? Symfony notices that your class extends ``AbstractExtension``

Copy link
Member

Choose a reason for hiding this comment

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

the added spaces should be removed

Choose a reason for hiding this comment

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

Did that while merging. Thanks.

@javiereguiluzjaviereguiluz merged commit7199104 intosymfony:7.3Apr 30, 2025
3 checks passed
@javiereguiluz
Copy link
Member

@RisingSunLight42 thanks a lot for this. You did a great job here. This is now merged!

Thanks to reviewers too for all the help given here.

While merging I did some tweaks, but they are minor and mostly to ensure the style of the new contents match the existing contents. Seea657538

RisingSunLight42 reacted with heart emoji

@RisingSunLight42RisingSunLight42 deleted the fix_20828 branchMay 15, 2025 16:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

@xabbuhxabbuhxabbuh left review comments

@Fan2ShrekFan2ShrekFan2Shrek left review comments

@GromNaNGromNaNGromNaN approved these changes

@alamiraultalamiraultalamirault approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

[TwigBundle] Enable#[AsTwigFilter],#[AsTwigFunction] and `#[AsTwi…
7 participants
@RisingSunLight42@javiereguiluz@GromNaN@xabbuh@alamirault@Fan2Shrek@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp