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

[Form][FrameworkBundle] Move FormPass to the Form component#21283

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:masterfromchalasr:form/addformtype-pass
Feb 16, 2017

Conversation

@chalasr
Copy link
Member

@chalasrchalasr commentedJan 13, 2017
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

So that anyone using only Form and DI can use it for registering form types/type guessers.
Follows#19443, related to#21284

linaori reacted with thumbs up emoji
@dunglas
Copy link
Member

👍

$container->addCompilerPass(newAddConsoleCommandPass());
}
$container->addCompilerPass(newFormPass());
if (class_exists(FormPass::class)) {
Copy link
Contributor

@sstoksstokJan 15, 2017
edited
Loading

Choose a reason for hiding this comment

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

As this going to be very big would it make sense to use a private helper method (which only adds when the class exists)?

$this->addExistingCompilerPass($container, $className, $arguments = array()).

So you don't end-up with numerous if-statements 👍

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I tend to agree 👍 let's see if deciders think it's worth it

sstok reacted with thumbs up emoji
Copy link
Member

@dunglasdunglasJan 15, 2017
edited
Loading

Choose a reason for hiding this comment

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

A simple private method in this class can do the trick isn't it?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Sure, method added

@chalasrchalasrforce-pushed theform/addformtype-pass branch 2 times, most recently from2ffe098 to2c91c6dCompareJanuary 15, 2017 15:47
@nicolas-grekasnicolas-grekas added this to the3.x milestoneJan 16, 2017
@chalasrchalasrforce-pushed theform/addformtype-pass branch 3 times, most recently from2b57f1b tod6ac6f3CompareJanuary 24, 2017 15:16
@chalasr
Copy link
MemberAuthor

chalasr commentedJan 24, 2017
edited
Loading

Updated this to make the form extension service id and form type/type_extension/type_guesser tags configurable through the constructor, defaulting to the ones used in the framework.
This needs a second review :)

@fabpot
Copy link
Member

Thank you@chalasr.

@fabpotfabpot merged commite68a6d9 intosymfony:masterFeb 16, 2017
fabpot added a commit that referenced this pull requestFeb 16, 2017
…onent (chalasr)This PR was merged into the 3.3-dev branch.Discussion----------[Form][FrameworkBundle] Move FormPass to the Form component| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aSo that anyone using only Form and DI can use it for registering form types/type guessers.Follows#19443, related to#21284Commits-------e68a6d9 [FrameworkBundle][Form] Move FormPass to the Form component
@chalasrchalasr deleted the form/addformtype-pass branchFebruary 16, 2017 14:18
@ro0NL
Copy link
Contributor

This needs a second review :)

Well.. the approach now differs with#20250 (see discussion#20250 (comment), ie. default args vs. required args)

Yet im rethinking it.. maybe having defaults in library code is good for convenience any way, and#20250 needs an update.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dunglasdunglasdunglas left review comments

+1 more reviewer

@sstoksstoksstok left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

7 participants

@chalasr@dunglas@fabpot@ro0NL@sstok@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp