-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Added interlinking and fixed install template for reusable bundles #4377
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,11 @@ apply to application bundles because you'll want to keep those as simple | |
as possible. For application bundles, just follow the practices shown throughout | ||
the book and cookbook. | ||
|
||
.. seealso:: | ||
|
||
The best practices for application-specific bundles are discussed in | ||
:doc:`/best_practices/introduction`. | ||
|
||
.. index:: | ||
pair: Bundle; Naming conventions | ||
|
||
|
@@ -219,7 +224,7 @@ following standardized instructions in your ``README.md`` file. | |
following command to download the latest stable version of this bundle: | ||
|
||
```bash | ||
$ composer require <package-name> | ||
$ composer require <package-name> "~1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like this. Why not let composer choose the best/latest version? As your not describes below, it sounds like this will just potentially create issues. Adding the version number is not something you see normally in other package managers ( What's your thought behind this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The installation chapter is the start of the documentation. You want to document against a specific version. When omitting the version, you'll be documenting 1.0 while 2.0 is installed (as an example) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, ok. Then we should have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ~1 is equal to ~1.0 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exactly. Here is what the Composer documentation has to say about it:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah great, I didn't know about the exception for the major! It makes more sense that way anyways. |
||
``` | ||
|
||
This command requires you to have Composer installed globally, as explained | ||
|
@@ -254,6 +259,9 @@ following standardized instructions in your ``README.md`` file. | |
} | ||
``` | ||
|
||
This template assumes that your bundle is in its ``1.x`` version. If not, change | ||
the ``"~1"`` installation version accordingly (``"~2"``, ``"~3"``, etc.) | ||
|
||
Optionally, you can add more installation steps (*Step 3*, *Step 4*, etc.) to | ||
explain other required installation tasks, such as registering routes or | ||
dumping assets. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like this - good link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should just keep in mind not to merge this before the best practices chapter is rendered properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you just mean the bad styling on the "best practice" items? Or is there something else. I wouldn't let the first thing block us :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were some more style issues and I ink even some images weren't loaded. But this seems to be fixed: http://symfony.com/doc/current/best_practices/introduction.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is #4383.