-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Added a new article about using/installing unstable Symfony versions #5186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
402f5d4
df22b75
2722933
719e52c
6d6303c
724c17f
e1f621e
caff8d2
a9fee2f
bae8043
038caa5
d5f3d82
224c380
1378ec9
8e8fad2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,41 +41,27 @@ Symfony application to an unstable framework version. Suppose again that Symfony | |
|
||
First, open the ``composer.json`` file located in the root directory of your | ||
project. Then, edit the value of the version defined for the ``symfony/symfony`` | ||
dependency: | ||
dependency as follows: | ||
|
||
.. code-block:: json | ||
|
||
{ | ||
"require": { | ||
// ... | ||
"symfony/symfony" : "2.7.*" | ||
"symfony/symfony" : "2.7.*@dev" | ||
} | ||
} | ||
|
||
Then, before updating your dependencies, make sure that the project configuration | ||
allows to install unstable versions. If the ``composer.json`` file contains a | ||
``minimum-stability`` option, change its value to ``dev``. If that option doesn't | ||
exist, add it as follows: | ||
|
||
.. code-block:: json | ||
|
||
{ | ||
"require": { | ||
// ... | ||
"symfony/symfony" : "2.7.*" | ||
}, | ||
"minimum-stability": "dev" | ||
} | ||
|
||
If you prefer to test a Symfony beta version, replace the ``dev`` value of the | ||
``minimum-stability`` option by ``beta``. | ||
|
||
Then, open a command console, enter your project directory and execute the following command to update your project dependencies: | ||
Then, open a command console, enter your project directory and execute the following | ||
command to update your project dependencies: | ||
|
||
.. code-block:: bash | ||
|
||
$ composer update | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we really want to update all packages? What about running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Much better!!! Thanks. |
||
|
||
If you prefer to test a Symfony beta version, replace the ``"2.7.*@dev"`` constraint | ||
by ``"2.7.*@beta1"`` (or any other beta number). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you cannot put a beta number in the stability flag. It is either There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the explanation. I've reworded as:
|
||
|
||
.. tip:: | ||
|
||
If you use Git to manage the project's code, it's a good practice to create | ||
|
@@ -87,7 +73,7 @@ Then, open a command console, enter your project directory and execute the follo | |
|
||
$ cd projects/my_project/ | ||
$ git checkout -b testing_new_symfony | ||
// update composer.json configuration | ||
// ... update composer.json configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. # ... update composer.json configuration |
||
$ composer update | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can then use |
||
|
||
// ... after testing the new Symfony version | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. # ... after testing the new Symfony version |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then -> Finally, because we just used
Then
in the previous sentence