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

Appearance settings

Commit 1f2877f

Browse filesBrowse files
committed
Document the new --version option from the Symfony bin
1 parent dd0ec96 commit 1f2877f
Copy full SHA for 1f2877f

File tree

Expand file treeCollapse file tree

3 files changed

+12
-16
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+12
-16
lines changed

‎best_practices/creating-the-project.rst

Copy file name to clipboardExpand all lines: best_practices/creating-the-project.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ to create files and execute the following commands:
3131
.. code-block:: terminal
3232
3333
$ cd projects/
34-
$ symfony new blog 3.4
34+
$ symfony new --version=3.4 blog
3535
3636
**Windows systems**:
3737

3838
.. class:: command-windows
3939
.. code-block:: terminal
4040
4141
> cd projects/
42-
> php symfony new blog 3.4
42+
> php symfony new --version=3.4 blog
4343
4444
.. note::
4545

‎setup.rst

Copy file name to clipboardExpand all lines: setup.rst
+7-11Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ with the ``new`` command:
6767

6868
.. code-block:: terminal
6969
70-
$ symfony new my_project_name 3.4
70+
$ symfony new --version=3.4 my_project_name
7171
7272
This command creates a new directory called ``my_project_name/`` that contains
7373
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
106106
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107107

108108
In case your project needs to be based on a specific Symfony version, use the
109-
optional second argument of the ``new`` command:
109+
``version`` option of the ``new`` command:
110110

111111
.. code-block:: terminal
112112
113113
# use the most recent version in any Symfony branch
114-
$ symfony new my_project_name 2.8
115-
$ symfony new my_project_name 3.1
114+
$ symfony new --version=3.3 my_project_name
115+
$ symfony new --version=3.4 my_project_name
116116
117117
# use a specific Symfony version
118-
$ symfony new my_project_name 2.8.3
119-
$ symfony new my_project_name 3.1.5
120-
121-
# use a beta or RC version (useful for testing new Symfony versions)
122-
$ symfony new my_project 2.7.0-BETA1
123-
$ symfony new my_project 2.7.0-RC1
118+
$ symfony new --version=3.3.10 my_project_name
119+
$ symfony new --version=3.4.5 my_project_name
124120
125121
# use the most recent 'lts' version (Long Term Support version)
126-
$ symfony new my_project_name lts
122+
$ symfony new --version=lts my_project_name
127123
128124
Each version has its *own* documentation, which you can select on any documentation
129125
page.

‎setup/symfony_server.rst

Copy file name to clipboardExpand all lines: setup/symfony_server.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,13 @@ commands from the Symfony server:
364364
.. code-block:: terminal
365365
366366
# creates a new project based on symfony/skeleton
367-
$ symfony new my_project_name
367+
$ symfony new --version=3.4 my_project_name
368368
369369
# creates a new project based on symfony/website-skeleton
370-
$ symfony new --full my_project_name
370+
$ symfony new --version=3.4 --full my_project_name
371371
372372
# creates a new project based on the Symfony Demo application
373-
$ symfony new --demo my_project_name
373+
$ symfony new --version=3.4 --demo my_project_name
374374
375375
You can create a project depending on a **development** version as well (note
376376
that Composer will also set the stability to ``dev`` for all root dependencies):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.