Skip to content

Commit 35d8e5f

Browse files
committed
Reverted removal of version
It seems like this one was missed when reverting the change. For the discussion, see #4290
1 parent 94f04a4 commit 35d8e5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cookbook/bundles/best_practices.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ following standardized instructions in your ``README.md`` file.
224224
following command to download the latest stable version of this bundle:
225225
226226
```bash
227-
$ composer require <package-name>
227+
$ composer require <package-name> "~1"
228228
```
229229
230230
This command requires you to have Composer installed globally, as explained
@@ -259,6 +259,9 @@ following standardized instructions in your ``README.md`` file.
259259
}
260260
```
261261
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+
262265
Optionally, you can add more installation steps (*Step 3*, *Step 4*, etc.) to
263266
explain other required installation tasks, such as registering routes or
264267
dumping assets.

0 commit comments

Comments
 (0)