8000 minor #11131 use terminal instead of bash (OskarStark) · symfony/symfony-docs@d2bd57f · GitHub
[go: up one dir, main page]

Skip to content

Commit d2bd57f

Browse files
committed
minor #11131 use terminal instead of bash (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- use terminal instead of bash the most code blocks use terminal <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 1528fac use terminal instead of bash
2 parents f4873d3 + 1528fac commit d2bd57f

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

components/dotenv.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Load a ``.env`` file in your PHP application via ``Dotenv::load()``::
5151

5252
Given the following ``.env`` file content:
5353

54-
.. code-block:: bash
54+
.. code-block:: terminal
5555
5656
# .env
5757
DB_USER=root
@@ -86,22 +86,22 @@ shell scripts:
8686
8787
Add comments by prefixing them with ``#``:
8888

89-
.. code-block:: bash
89+
.. code-block:: terminal
9090
9191
# Database credentials
9292
DB_USER=root
9393
DB_PASS=pass # This is the secret password
9494
9595
Use environment variables in values by prefixing variables with ``$``:
9696

97-
.. code-block:: bash
97+
.. code-block:: terminal
9898
9999
DB_USER=root
100100
DB_PASS=${DB_USER}pass # Include the user as a password prefix
101101
102102
Embed commands via ``$()`` (not supported on Windows):
103103

104-
.. code-block:: bash
104+
.. code-block:: terminal
105105
106106
START_TIME=$(date)
107107

components/phpunit_bridge.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ the ``simple-phpunit`` if it is not provided.
565565

566566
If you have installed the bridge through Composer, you can run it by calling e.g.:
567567

568-
.. code-block:: bash
568+
.. code-block:: terminal
569569
570570
$ vendor/bin/simple-phpunit
571571

configuration/micro_kernel_trait.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A Single-File Symfony Application
1717
Start with a completely empty directory. Get ``symfony/symfony`` as a dependency
1818
via Composer:
1919

20-
.. code-block:: bash
20+
.. code-block:: terminal
2121
2222
$ composer require symfony/symfony
2323
@@ -76,7 +76,7 @@ Next, create an ``index.php`` file that creates a kernel class and executes it::
7676

7777
That's it! To test it, you can start the built-in web server:
7878

79-
.. code-block:: bash
79+
.. code-block:: terminal
8080
8181
$ php -S localhost:8000
8282
@@ -339,7 +339,7 @@ this:
339339
340340
As before you can use PHP built-in server:
341341

342-
.. code-block:: bash
342+
.. code-block:: terminal
343343
344344
cd web/
345345
$ php -S localhost:8000

frontend/assetic/asset_management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Starting from Symfony 2.8, Assetic is no longer included by default in the
1111
Symfony Standard Edition. Before using any of its features, install the
1212
AsseticBundle executing this console command in your project:
1313

14-
.. code-block:: bash
14+
.. code-block:: terminal
1515
1616
$ composer require symfony/assetic-bundle
1717

performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ in ``vendor/composer/autoload_classmap.php``.
199199
Execute this command to generate the class map (and make it part of your
200200
deployment process too):
201201

202-
.. code-block:: bash
202+
.. code-block:: terminal
203203
204204
$ composer dump-autoload --optimize --no-dev --classmap-authoritative
205205

security/guard_authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Finally, configure your ``firewalls`` key in ``security.yml`` to use this authen
344344
You did it! You now have a fully-working API token authentication system. If your
345345
homepage required ``ROLE_USER``, then you could test it under different conditions:
346346

347-
.. code-block:: bash
347+
.. code-block:: terminal
348348
349349
# test with no token
350350
curl http://localhost:8000/
@@ -480,7 +480,7 @@ to cause a failure::
480480
In this case, since "ILuvAPIs" is a ridiculous API key, you could include an easter
481481
egg to return a custom message if someone tries this:
482482

483-
.. code-block:: bash
483+
.. code-block:: terminal
484484
485485
curl -H "X-AUTH-TOKEN: ILuvAPIs" http://localhost:8000/
486486
# {"message":"ILuvAPIs is not a real API key: it's just a silly phrase"}

0 commit comments

Comments
 (0)
0