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

[HttpFoundation] Make ResponseHeaderBag::makeDisposition static#28807

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:masterfromfabpot:makedisposition-static
Oct 15, 2018

Conversation

@fabpot
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes-ish
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#27851
LicenseMIT
Doc PRn/a

BoShurik reacted with thumbs up emoji
* @see RFC 6266
* @see HeaderUtils::makeDisposition()
*/
publicfunctionmakeDisposition($disposition,$filename,$filenameFallback ='')

Choose a reason for hiding this comment

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

shall we deprecate then?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

not sure it's worth it.

*
* @see RFC 6266
*/
publicstaticfunctionmakeDisposition($disposition,$filename,$filenameFallback ='')
Copy link
Contributor

Choose a reason for hiding this comment

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

why not usingnull as default here?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I've just moved the code and don't want to make other changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense 👍
Thank you!

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO new code should have type declarations.

OskarStark reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

done

*
* @param string $disposition One of "inline" or "attachment"
* @param string $filename A unicode string
* @param string $filenameFallback A string containing only ASCII characters that
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO$fallback would be enough in this context

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

Totally unrelated to this PR, but I always find hard to understand what does "disposition attachment" and "disposition inline" mean. Normal people call this "download file" and "display file". Maybe we should add some helpers somewhere?

@fabpotfabpotforce-pushed themakedisposition-static branch from4c4ad02 to03471a3CompareOctober 11, 2018 10:56
@nicolas-grekasnicolas-grekas added this to thenext milestoneOct 14, 2018
@fabpotfabpotforce-pushed themakedisposition-static branch from03471a3 tod29b410CompareOctober 15, 2018 14:53
@fabpotfabpot merged commitd29b410 intosymfony:masterOct 15, 2018
fabpot added a commit that referenced this pull requestOct 15, 2018
…on static (fabpot)This PR was merged into the 4.2-dev branch.Discussion----------[HttpFoundation] Make ResponseHeaderBag::makeDisposition static| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes-ish| BC breaks?    | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes| Fixed tickets |#27851| License       | MIT| Doc PR        | n/a<!--Write a short README entry for your feature/bugfix here (replace this comment block.)This will help people understand your PR and can be used as a start of the Doc PR.Additionally: - Bug fixes must be submitted against the lowest branch where they apply   (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch.-->Commits-------d29b410 [HttpFoundation] made ResponseHeaderBag::makeDisposition static
fabpot added a commit that referenced this pull requestOct 15, 2018
This PR was merged into the 4.2-dev branch.Discussion----------[HttpFoundation] Publicify new consts| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Continuation of#28807I think it's reasonable to enforce visibility for new consts, ideally solved by PHP-CS-Fixer. This makes it explicit for the consts to be consumed as part of public API.Commits-------ce95d0d [HttpFoundation] Publicify new consts
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
This was referencedNov 3, 2018
@fabpotfabpot deleted the makedisposition-static branchJanuary 14, 2019 11:01
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@OskarStarkOskarStarkOskarStark approved these changes

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

+1 more reviewer

@ro0NLro0NLro0NL left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

6 participants

@fabpot@javiereguiluz@nicolas-grekas@OskarStark@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp