Skip to content

Commit db71246

Browse files
committed
How to add a new package and update .lock file
1 parent 19550c8 commit db71246

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: cookbook/workflow/_vendor_deps.rst.inc

+20
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@ allows you to pin each library to an **exact** version. In fact, if a ``composer
2222
file exists, the versions inside will override those in ``composer.json``.
2323
To upgrade your libraries to new versions, run ``php composer.phar update``.
2424

25+
.. tip::
26+
27+
If you want to add a new package to your application modify ``composer.json``
28+
file:
29+
30+
.. code-block:: json
31+
32+
{
33+
"require": {
34+
...
35+
"doctrine/doctrine-fixtures-bundle": "@dev"
36+
}
37+
}
38+
39+
and then execute update command for this specific package, i.e.:
40+
41+
.. code-block:: bash
42+
43+
$ php cofmposer.phar update doctrine/doctrine-fixtures-bundle
44+
2545
To learn more about Composer, see `GetComposer.org`_:
2646

2747
It's important to realize that these vendor libraries are *not* actually part

0 commit comments

Comments
 (0)