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 c9c5034

Browse filesBrowse files
committed
minor #7962 Symfony Installer Instructions for Windows (robwent)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7962). Discussion ---------- Symfony Installer Instructions for Windows Related to issue #7961 Changes command to write symfony file with UTF8 encoding and adds instructions to create symfony.bat file to use the command globally Commits ------- f12fac0 Symfony Installer Instructions for Windows
2 parents 2519735 + f12fac0 commit c9c5034
Copy full SHA for c9c5034

File tree

Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed

‎setup.rst

Copy file name to clipboardExpand all lines: setup.rst
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@ executable that needs to be installed on your system only once:
2222
$ sudo chmod a+x /usr/local/bin/symfony
2323
2424
# Windows systems
25-
c:\> php -r "readfile('https://symfony.com/installer');" > symfony
25+
c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
2626
2727
.. note::
2828

2929
In Linux and macOS, a global ``symfony`` command is created. In Windows,
3030
move the ``symfony`` file to a directory that's included in the ``PATH``
31-
environment variable to create the global command or move it to any other
32-
directory convenient for you:
31+
environment variable and create a ``symfony.bat`` file to create the global
32+
command or move it to any other directory convenient for you:
3333

3434
.. code-block:: terminal
3535
3636
# for example, if WAMP is used ...
3737
c:\> move symfony c:\wamp\bin\php
38+
# create symfony.bat in the same folder
39+
c:\> cd c:\wamp\bin\php
40+
c:\> (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat
3841
# ... then, execute the command as:
3942
c:\> symfony
4043

0 commit comments

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