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

Added Doctrine entities and documents to the list of known locations for classes#7156

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
weaverryan merged 2 commits into2.7frombundle_classes
Nov 2, 2017

Conversation

@javiereguiluz
Copy link
Member

No description provided.

@wouterj
Copy link
Member

👍
status: reviewed

Event Listeners ``EventListener/`` No
Configuration ``Resources/config/`` No
Web Resources (CSS, JS, images) ``Resources/public/`` Yes
Translation files ``Resources/translations/`` Yes
Copy link
Contributor

Choose a reason for hiding this comment

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

To complete the PR, WDYT about adding/Resources/config/validation and/Resources/config/serialization too?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I'm not sure because those directories are optional when using annotations. In this case, I'd also like to have a dedicated article to explain these things, as stated in a previous comment.

Commands ``Command/`` Yes
Controllers ``Controller/`` No
Service Container Extensions ``DependencyInjection/`` Yes
Doctrine entities and documents ``Entity/`` (ORM) or ``Document/`` (ODM) No
Copy link
Member

Choose a reason for hiding this comment

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

Why did you tag this as not mandatory?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Because thanks to thedoctrine.orm.mapings you can store your entities anywhere you like, even outside the bundles.

In any case, I dislike thisMandatory column more and more. The intention is good, but this cannot simply be answered by Yes or No. I propose to remove this column and add a new article explaining how to override the location every single part of the bundle: controllers, templates, entities, commands, etc.

Copy link
Member

Choose a reason for hiding this comment

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

The same argument applies to nearly all other rows where have set this column to "yes". So I would rather say let's remove the column.

Copy link
Member

Choose a reason for hiding this comment

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

By the way, we have such an article:http://symfony.com/doc/current/bundles/override.html

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for removing this column.

Copy link
Member

Choose a reason for hiding this comment

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

see also#8269 which made some changes in the3.4 branch because auto-discovering commands based on their location will be deprecated

@weaverryanweaverryan merged commit8764708 into2.7Nov 2, 2017
weaverryan added a commit that referenced this pull requestNov 2, 2017
…n locations for classes (javiereguiluz)This PR was squashed before being merged into the 2.7 branch (closes#7156).Discussion----------Added Doctrine entities and documents to the list of known locations for classesCommits-------8764708 Final updates469d0ea Added Doctrine entities and documents to the list of known locations for classes
@xabbuhxabbuh deleted the bundle_classes branchNovember 2, 2017 13:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

+2 more reviewers

@ogizanagiogizanagiogizanagi left review comments

@HeahDudeHeahDudeHeahDude left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

8 participants

@javiereguiluz@wouterj@xabbuh@ogizanagi@HeahDude@weaverryan@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp