Skip to content

Updated some console commands #12078

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

Merged
merged 1 commit into from
Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _build/_themes/_exts/symfonycom/sphinx/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TerminalLexer(RegexLexer):
tokens = {
'root': [
('^\$', Generic.Prompt, 'bash-prompt'),
('^C:\\[^\n>]+>', Generic.Prompt, 'dos-prompt'),
('^>', Generic.Prompt, 'dos-prompt'),
('^#.+$', Comment.Single),
('^.+$', Generic.Output),
],
Expand Down
13 changes: 10 additions & 3 deletions best_practices/creating-the-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,21 @@ Now that everything is correctly set up, you can create a new project based on
Symfony. In your command console, browse to a directory where you have permission
to create files and execute the following commands:

**Linux and macOS systems**:

.. class:: command-linux
.. code-block:: terminal

$ cd projects/
$ symfony new blog 3.4

# Windows
c:\> cd projects/
c:\projects\> php symfony new blog 3.4
**Windows systems**:

.. class:: command-windows
.. code-block:: terminal

> cd projects/
> php symfony new blog 3.4

.. note::

Expand Down
27 changes: 17 additions & 10 deletions setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ Symfony provides a dedicated application called the **Symfony Installer** to eas
the creation of Symfony applications. This installer is a PHP 5.4 compatible
executable that needs to be installed on your system only once:

**Linux and macOS systems**:

.. class:: command-linux
.. code-block:: terminal

# Linux and macOS systems
$ sudo mkdir -p /usr/local/bin
$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
$ sudo chmod a+x /usr/local/bin/symfony

# Windows systems
c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
**Windows systems**:

.. class:: command-windows
.. code-block:: terminal

> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"

.. note::

Expand All @@ -37,21 +43,22 @@ executable that needs to be installed on your system only once:
environment variable and create a ``symfony.bat`` file to create the global
command or move it to any other directory convenient for you:

.. class:: command-windows
.. code-block:: terminal

# for example, if WAMP is used ...
c:\> move symfony c:\wamp\bin\php
> move symfony c:\wamp\bin\php
# create symfony.bat in the same folder
c:\> cd c:\wamp\bin\php
c:\> (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat
> cd c:\wamp\bin\php
> (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat
# ... then, execute the command as:
c:\> symfony
> symfony

# moving it to your projects folder ...
c:\> move symfony c:\projects
> move symfony c:\projects
# ... then, execute the command as
c:\> cd projects
c:\projects\> php symfony
> cd projects
> php symfony

.. _installation-creating-the-app:

Expand Down