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

[Workflow] Move twig extension registration to twig bundle#22652

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
fabpot merged 1 commit intosymfony:3.2fromogizanagi:mv_workflow_twig_ext_di_def
May 8, 2017
Merged

[Workflow] Move twig extension registration to twig bundle#22652

fabpot merged 1 commit intosymfony:3.2fromogizanagi:mv_workflow_twig_ext_di_def
May 8, 2017

Conversation

@ogizanagi
Copy link
Contributor

@ogizanagiogizanagi commentedMay 6, 2017
edited
Loading

QA
Branch?3.2
Bug fix?not really
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsN/A
LicenseMIT
Doc PRN/A

It's probably very late, but I think the twig extension registration is supposed to be done from theTwigBundle rather than theFrameworkBundle. Fortunately, it doesn't cause any issue currently when using the framework bundle and the workflow component without twig, because it only creates aworkflow.twig_extension service you'll probably never call, and thetwig.extension tag is never processed. But still, creates a useless service that cannot be called (and is not removed because it's public).

So this PR aims for consistency over other twig extensions registration, and removing this service when not using twig.
It isn't a BC break to me, as you usually already use theTwigBundle for other extensions.

dmaicher and chalasr reacted with thumbs up emoji
fabpot added a commit that referenced this pull requestMay 8, 2017
This PR was merged into the 3.2 branch.Discussion----------[Workflow] fix use directives| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | N/A| License       | MIT| Doc PR        | N/ASpotted while creating#22652Commits-------08f4ad2 [Workflow] fix use directives
@fabpot
Copy link
Member

Thank you@ogizanagi.

@fabpotfabpot merged commit3fc80d1 intosymfony:3.2May 8, 2017
fabpot added a commit that referenced this pull requestMay 8, 2017
… (ogizanagi)This PR was merged into the 3.2 branch.Discussion----------[Workflow] Move twig extension registration to twig bundle| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | not really| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | N/A| License       | MIT| Doc PR        | N/AIt's probably very late, but I think the twig extension registration is supposed to be done from the `TwigBundle` rather than the `FrameworkBundle`. Fortunately, it doesn't cause any issue currently when using the framework bundle and the workflow component without twig, because it only creates a `workflow.twig_extension` service you'll probably never call, and the `twig.extension` tag is never processed. But still, creates a useless service that cannot be called (and is not removed because it's public).So this PR aims for consistency over other twig extensions registration, and removing this service when not using twig.It isn't a BC break to me, as you usually already use the `TwigBundle` for other extensions.Commits-------3fc80d1 [Workflow] Move twig extension registration to twig bundle
@ogizanagiogizanagi deleted the mv_workflow_twig_ext_di_def branchMay 8, 2017 17:04
@fabpotfabpot mentioned this pull requestMay 17, 2017
@fabpotfabpot mentioned this pull requestMay 29, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ogizanagi@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp