Skip to content

Commit 3031a3f

Browse files
committed
feature #8730 Add example usage of the link script (dunglas)
This PR was merged into the 2.7 branch. Discussion ---------- Add example usage of the link script Docs for symfony/symfony#24746. Commits ------- 6051229 Add example usage of the link script
2 parents 5b0af99 + 6051229 commit 3031a3f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

contributing/code/patches.rst

+16
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)