Skip to content

Commit 12a09ab

Browse files
committed
feature #4377 Added interlinking and fixed install template for reusable bundles (WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- Added interlinking and fixed install template for reusable bundles | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixet tickets | - See commit descriptions for more info Commits ------- 35d8e5f Reverted removal of version 94f04a4 Added interlinking between the 2 best practices
2 parents a27238e + 35d8e5f commit 12a09ab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cookbook/bundles/best_practices.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ apply to application bundles because you'll want to keep those as simple
1515
as possible. For application bundles, just follow the practices shown throughout
1616
the book and cookbook.
1717

18+
.. seealso::
19+
20+
The best practices for application-specific bundles are discussed in
21+
:doc:`/best_practices/introduction`.
22+
1823
.. index::
1924
pair: Bundle; Naming conventions
2025

@@ -219,7 +224,7 @@ following standardized instructions in your ``README.md`` file.
219224
following command to download the latest stable version of this bundle:
220225
221226
```bash
222-
$ composer require <package-name>
227+
$ composer require <package-name> "~1"
223228
```
224229
225230
This command requires you to have Composer installed globally, as explained
@@ -254,6 +259,9 @@ following standardized instructions in your ``README.md`` file.
254259
}
255260
```
256261
262+
This template assumes that your bundle is in its ``1.x`` version. If not, change
263+
the ``"~1"`` installation version accordingly (``"~2"``, ``"~3"``, etc.)
264+
257265
Optionally, you can add more installation steps (*Step 3*, *Step 4*, etc.) to
258266
explain other required installation tasks, such as registering routes or
259267
dumping assets.

0 commit comments

Comments
 (0)