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

[2.8][Form] Deprecate alias tag option#15926

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

Closed

Conversation

@wouterj
Copy link
Member

FQCN should be used since 2.8 instead, so a deprecation error should be triggered when thealias setting is used.

Furthermore, the name of the option doesn't make much sense for form types (as it's the alias of the field it applies to), so I renamed it toextended_type. I'm open to any other suggestions.

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

Copy link
Member

Choose a reason for hiding this comment

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

we need a deprecation to be triggered when the service id is used, because such case makes no sense actually.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I agree that it doesn't mean anything, but it's the default at the moment. Do you think we should require setting theextended_type attribute and trigger an exception if it (or alias) is not set?

Copy link
Contributor

Choose a reason for hiding this comment

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

@wouterj yes if neither the alias or extended_type is set, it should trigger a deprecation as well. in 3.0 it should then throw an exception.

Copy link
Contributor

Choose a reason for hiding this comment

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

please move this to theelse block which makes it more clear what code can be removed later

@wouterjwouterjforce-pushed theform-alias_option_deprecation branch fromd048496 to3a62981CompareSeptember 30, 2015 12:54
@wouterj
Copy link
MemberAuthor

PR updated

@Tobion
Copy link
Contributor

Status: Needs Work

@wouterj
Copy link
MemberAuthor

Unless I missed something, I've now finished this PR:

  • Added CHANGELOG + UPGRADE notes
  • Deprecated thealias option for form types, but didn't trigger any deprecation notice as extra attributes don't cause problems (and it's not possible with the current BC layer to removealias argument usages in the Symfony bundles)
  • Renamedalias toextended_type for form type extensions (which is consistent with theFormTypeExtensionInterface#getExtendedType() method btw)
  • Changed all usages of the deprecated options in the Symfony code base
  • Deprecated the fallback to service id foralias/extended_type,extended_type is now required

@wouterjwouterjforce-pushed theform-alias_option_deprecation branch fromf15bfdd to9b76e71CompareOctober 1, 2015 08:39
@wouterj
Copy link
MemberAuthor

Status: Needs Review

@wouterj
Copy link
MemberAuthor

Build failures are not related to this PR btw

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe also useextended_type/extended-type esp. since the following is code is xml which will cause confusion.

@wouterj
Copy link
MemberAuthor

Fixed, thanks@Tobion

Copy link
Contributor

Choose a reason for hiding this comment

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

this is useless

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Well, it is useless, but it doesn't hurt that much and reduces the changes to be done in 3.0.

Copy link
Contributor

Choose a reason for hiding this comment

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

in 3.0 we will throw an exception, there is no defaultnull

@Tobion
Copy link
Contributor

Thank you@wouterj.

@wouterjwouterj deleted the form-alias_option_deprecation branchOctober 1, 2015 15:57
fabpot added a commit that referenced this pull requestOct 1, 2015
…ibutes (WouterJ)This PR was merged into the 3.0-dev branch.Discussion----------[WIP][3.0][Form] Removed usage of deprecated form tag attributes| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -WIP because it needs some adjustments after#15926 is mergedCommits-------215fdbe Removed alias attribute usages
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.

4 participants

@wouterj@Tobion@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp