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

Promoting new bundle directory structure as best practice#14993

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:4.4fromyceruto:bundles_structure
Feb 18, 2021

Conversation

@yceruto
Copy link
Member

As Symfony 3.4 is not currently supported (security fixes only) I would like to propose to start promoting the new bundle directory structure (compatible since 4.4) consistent with the project one.

What do you think?

Fix:#12156
PR:symfony/symfony#32845

jakzal and alexander-schranz reacted with thumbs up emoji
@ycerutoycerutoforce-pushed thebundles_structure branch 2 times, most recently froma446761 to7ae696fCompareFebruary 17, 2021 14:44
@javiereguiluz
Copy link
Member

What's our official recommendation for existing third-party bundles that no longer support 3.4. Do we encourage them to upgrade their structure or it's better to use this only in brand-new bundles?

Related to the previous question, even if we don't recommend to change the structure for existing bundles, can you think of any problem if they do? Thanks!

Copy link
Member

@NyholmNyholm left a comment

Choose a reason for hiding this comment

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

Thank you.

Do we encourage them to upgrade their structure or it's better to use this only in brand-new bundles?

They can do whatever they want. Im not sure we should give an opinon. Both work and we find the new structure to be better. Where "better" means, more "PHP" and less "symfony specific"

yceruto reacted with thumbs up emoji

class AcmeBlogBundle extends Bundle
{
public function getPath(): string
Copy link
Contributor

Choose a reason for hiding this comment

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

BTW, should we deprecate not overriding this method, so that we can make this the default in sf 6.0?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I was wondering the same thing, I think we can do that when we decide to start depreciating the old structure.

Nyholm reacted with thumbs up emoji
@OskarStarkOskarStark added this to the4.4 milestoneFeb 17, 2021
Copy link
Contributor

@OskarStarkOskarStark left a comment

Choose a reason for hiding this comment

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

Should target 4.4 👍

@yceruto
Copy link
MemberAuthor

What's our official recommendation for existing third-party bundles that no longer support 3.4. Do we encourage them to upgrade their structure or it's better to use this only in brand-new bundles?

As long as the old structure is kept alive, I don't think we should encourage upgrading, at least not now. Maybe when we start deprecating the old structure.

Related to the previous question, even if we don't recommend to change the structure for existing bundles, can you think of any problem if they do? Thanks!

As long as the bundle is strictly compatible with Sf >= 4.4 shouldn't be a problem 🤞

@stof
Copy link
Member

maybe the doc should have a note saying that this structure can be used only when requiringsymfony/http-kernel 4.4+ only, to avoid issues with bundle migrating to it (due to reading the new doc) without changing their min version.

yceruto reacted with thumbs up emoji

@yceruto
Copy link
MemberAuthor

yceruto commentedFeb 17, 2021
edited
Loading

Updated:

  • @stof, comments addressed and addedversionadded:: note.
  • @OskarStark, rebased on 4.4 branch.
  • consistent vendor/bundle naming
javiereguiluz reacted with thumbs up emoji

@javiereguiluz
Copy link
Member

Fantastic changes! Thanks Yonel. Merged!

@ycerutoyceruto deleted the bundles_structure branchFebruary 18, 2021 16:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuh

+3 more reviewers

@stofstofstof left review comments

@ogizanagiogizanagiogizanagi left review comments

@NyholmNyholmNyholm approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

[HttpKernel][FrameworkBundle] Add alternative convention for bundle directories

7 participants

@yceruto@javiereguiluz@stof@OskarStark@Nyholm@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp