-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Document the new version option from the Symfony bin #12445
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 all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ with the ``new`` command: | |
|
||
.. code-block:: terminal | ||
|
||
$ symfony new my_project_name 3.4 | ||
$ symfony new --version=3.4 my_project_name | ||
|
||
This command creates a new directory called ``my_project_name/`` that contains | ||
an empty project based on the most recent stable Symfony version available. In | ||
|
@@ -106,24 +106,20 @@ Basing your Project on a Specific Symfony Version | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
In case your project needs to be based on a specific Symfony version, use the | ||
optional second argument of the ``new`` command: | ||
``version`` option of the ``new`` command: | ||
|
||
.. code-block:: terminal | ||
|
||
# use the most recent version in any Symfony branch | ||
$ symfony new my_project_name 2.8 | ||
$ symfony new my_project_name 3.1 | ||
$ symfony new --version=3.3 my_project_name | ||
$ symfony new --version=3.4 my_project_name | ||
|
||
# use a specific Symfony version | ||
$ symfony new my_project_name 2.8.3 | ||
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. Any version lower to 3.3 does not work because |
||
$ symfony new my_project_name 3.1.5 | ||
|
||
# use a beta or RC version (useful for testing new Symfony versions) | ||
$ symfony new my_project 2.7.0-BETA1 | ||
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. BETA and RC does not work, I get Even with more recent branches: 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. The special version values are We already document |
||
$ symfony new my_project 2.7.0-RC1 | ||
$ symfony new --version=3.3.10 my_project_name | ||
$ symfony new --version=3.4.5 my_project_name | ||
|
||
# use the most recent 'lts' version (Long Term Support version) | ||
$ symfony new my_project_name lts | ||
$ symfony new --version=lts my_project_name | ||
|
||
Each version has its *own* documentation, which you can select on any documentation | ||
page. | ||
|
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.
Perhaps the version option would look better at the end than between the arguments ?
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.
I think too but since there were already occurences like this in
setup/symfony_server.rst
I continued.