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

Updated Bundles Best Practices for Symfony 4#8616

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

Conversation

@javiereguiluz
Copy link
Member

No description provided.

@javiereguiluzjaviereguiluz added this to the4.0 milestoneNov 10, 2017
Installation
------------

Bundles must define a `Symfony Flex recipe`_ to automate their integration
Copy link
Member

Choose a reason for hiding this comment

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

This seems way to strict and unwanted in my opinion. You only need to add a flex recipe if you need logic to be executed when installing your bundle. Otherwise,type: symfony-bundle is enough to have auto registration.

We shouldn't want to have many empty manifests in the contrib repository.

Copy link
Member

Choose a reason for hiding this comment

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

I agree. How about:

Bundles should set ``"type": "symfony-bundle"`` in their ``composer.json`` file. With this,`Symfony Flex`_ will be able to automatically enable your bundle when it's installed.If your bundle requires any setup (e.g. configuration, new files, changes to `.gitignore`, etc),then you should create a `Flex recipe`_.

yceruto and javiereguiluz reacted with thumbs up emoji
Open a command console, enter your project directory and execute:
.. code-block:: terminal
Copy link
Member

Choose a reason for hiding this comment

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

We have to usebash here, as terminal is a special Symfony docs only lexer.

Installation
------------

Bundles must define a `Symfony Flex recipe`_ to automate their integration
Copy link
Member

Choose a reason for hiding this comment

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

I agree. How about:

Bundles should set ``"type": "symfony-bundle"`` in their ``composer.json`` file. With this,`Symfony Flex`_ will be able to automatically enable your bundle when it's installed.If your bundle requires any setup (e.g. configuration, new files, changes to `.gitignore`, etc),then you should create a `Flex recipe`_.

yceruto and javiereguiluz reacted with thumbs up emoji
@weaverryanweaverryan merged commit9e6d75d intosymfony:masterNov 16, 2017
weaverryan added a commit that referenced this pull requestNov 16, 2017
This PR was squashed before being merged into the master branch (closes#8616).Discussion----------Updated Bundles Best Practices for Symfony 4Commits-------9e6d75d Fixes by reviewers1f433da Fixed a missing reference7f00345 Updated Bundles Best Practices for Symfony 4
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@weaverryanweaverryanweaverryan requested changes

@wouterjwouterjwouterj requested changes

Assignees

No one assigned

Projects

None yet

Milestone

4.0

Development

Successfully merging this pull request may close these issues.

4 participants

@javiereguiluz@weaverryan@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp