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

Commit54f8557

Browse files
committed
Merge pull requestsymfony#2046 from gajdaw/update-2.1
How to add a new package and update .lock file
2 parents19550c8 +2c4e3f0 commit54f8557

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

‎cookbook/workflow/_vendor_deps.rst.inc‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,32 @@ 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 composer.phar update doctrine/doctrine-fixtures-bundle
44+
45+
You can combine both steps into a single command:
46+
47+
.. code-block:: bash
48+
49+
$ php composer.phar require doctrine/doctrine-fixtures-bundle:@dev
50+
2551
To learn more about Composer, see `GetComposer.org`_:
2652

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp