8000 Merge branch '2.7' into 2.8 · symfony/symfony-docs@9f8384d · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f8384d

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Add example usage of the link script
2 parents c590626 + 3031a3f commit 9f8384d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

contributing/code/patches.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,22 @@ Then create a new branch off the ``2.7`` branch to work on the bugfix:
157157
The above checkout commands automatically switch the code to the newly created
158158
branch (check the branch you are working on with ``git branch``).
159159

160+
Use your Branch in an Existing Project
161+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
162+
163+
If you want to test your code in an existing project that uses ``symfony/symfony``
164+
or Symfony components, you can use the ``link`` utility provided in the Git repository
165+
you cloned previously.
166+
This tool scans the ``vendor/`` directory of your project, finds Symfony packages it
167+
uses, and replaces them by symbolic links to the ones in the Git repository.
168+
169+
.. code-block:: terminal
170+
171+
$ php link /path/to/your/project
172+
173+
Before running the ``link`` command, be sure that the dependencies of the project you
174+
want to debug are installed by running ``composer install`` inside it.
175+
160176
Work on your Patch
161177
~~~~~~~~~~~~~~~~~~
162178

0 commit comments

Comments
 (0)
0