Skip to content

Commit fdaf189

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: Updated the installation instructions for components introduced in 2.8 Improved the "Installation" section of components minor #9415 Fixing a typo on the mustRun method (gouaille)
2 parents 2b26570 + 2b3c6d9 commit fdaf189

34 files changed

+150
-110
lines changed

components/asset.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ simple. Hardcoding URLs can be a disadvantage because:
4242
Installation
4343
------------
4444

45-
You can install the component in two different ways:
45+
.. code-block:: terminal
4646
47-
* :doc:`Install it via Composer </components/using_components>` (``symfony/asset`` on `Packagist`_);
48-
* Use the official Git repository (https://github.com/symfony/asset).
47+
$ composer require symfony/asset
48+
49+
Alternatively, you can clone the `<https://github.com/symfony/asset>`_ repository.
50+
51+
.. include:: /components/require_autoload.rst.inc
4952

5053
Usage
5154
-----

components/browser_kit.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ The BrowserKit Component
1717
Installation
1818
------------
1919

20-
You can install the component in two different ways:
20+
.. code-block:: terminal
2121
22-
* :doc:`Install it via Composer </components/using_components>`
23-
(``symfony/browser-kit`` on `Packagist`_);
24-
* Use the official Git repository (https://github.com/symfony/browser-kit).
22+
$ composer require symfony/browser-kit
23+
24+
Alternatively, you can clone the `<https://github.com/symfony/browser-kit>`_ repository.
25+
26+
.. include:: /components/require_autoload.rst.inc
2527

2628
Basic Usage
2729
-----------

components/class_loader.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ not be found by a class loader.
4242
Installation
4343
------------
4444

45-
You can install the component in 2 different ways:
45+
.. code-block:: terminal
4646
47-
* :doc:`Install it via Composer </components/using_components>` (``symfony/class-loader``
48-
on `Packagist`_);
49-
* Use the official Git repository (https://github.com/symfony/class-loader).
47+
$ composer require symfony/class-loader
48+
49+
Alternatively, you can clone the `<https://github.com/symfony/class-loader>`_ repository.
5050

5151
.. include:: /components/require_autoload.rst.inc
5252

components/config.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ The Config Component
1212
Installation
1313
------------
1414

15-
You can install the component in 2 different ways:
15+
.. code-block:: terminal
1616
17-
* :doc:`Install it via Composer </components/using_components>` (``symfony/config``
18-
on `Packagist`_);
19-
* Use the official Git repository (https://github.com/symfony/config).
17+
$ composer require symfony/config
18+
19+
Alternatively, you can clone the `<https://github.com/symfony/config>`_ repository.
2020

2121
.. include:: /components/require_autoload.rst.inc
2222

components/console.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ other batch jobs.
1515
Installation
1616
------------
1717

18-
You can install the component in 2 different ways:
18+
.. code-block:: terminal
1919
20-
* :doc:`Install it via Composer </components/using_components>` (``symfony/console`` on `Packagist`_);
21-
* Use the official Git repository (https://github.com/symfony/console).
20+
$ composer require symfony/console
21+
22+
Alternatively, you can clone the `<https://github.com/symfony/console>`_ repository.
2223

2324
.. include:: /components/require_autoload.rst.inc
2425

components/css_selector.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ The CssSelector Component
1010
Installation
1111
------------
1212

13-
You can install the component in 2 different ways:
13+
.. code-block:: terminal
1414
15-
* :doc:`Install it via Composer </components/using_components>` (``symfony/css-selector`` on `Packagist`_);
16-
* Use the official Git repository (https://github.com/symfony/css-selector).
15+
$ composer require symfony/css-selector
16+
17+
Alternatively, you can clone the `<https://github.com/symfony/css-selector>`_ repository.
1718

1819
.. include:: /components/require_autoload.rst.inc
1920

components/debug.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ The Debug Component
1010
Installation
1111
------------
1212

13-
You can install the component in many different ways:
13+
.. code-block:: terminal
1414
15-
* :doc:`Install it via Composer </components/using_components>` (``symfony/debug`` on `Packagist`_);
16-
* Use the official Git repository (https://github.com/symfony/debug).
15+
$ composer require symfony/debug
16+
17+
Alternatively, you can clone the `<https://github.com/symfony/debug>`_ repository.
1718

1819
.. include:: /components/require_autoload.rst.inc
1920

components/dependency_injection.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ For an introduction to Dependency Injection and service containers see
1515
Installation
1616
------------
1717

18-
You can install the component in 2 different ways:
18+
.. code-block:: terminal
1919
20-
* :doc:`Install it via Composer </components/using_components>` (``symfony/dependency-injection``
21-
on `Packagist`_);
22-
* Use the official Git repository (https://github.com/symfony/dependency-injection).
20+
$ composer require symfony/dependency-injection
21+
22+
Alternatively, you can clone the `<https://github.com/symfony/dependency-injection>`_ repository.
2323

2424
.. include:: /components/require_autoload.rst.inc
2525

components/dom_crawler.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ The DomCrawler Component
1515
Installation
1616
------------
1717

18-
You can install the component in 2 different ways:
18+
.. code-block:: terminal
1919
20-
* :doc:`Install it via Composer </components/using_components>` (``symfony/dom-crawler`` on `Packagist`_);
21-
* Use the official Git repository (https://github.com/symfony/dom-crawler).
20+
$ composer require symfony/dom-crawler
21+
22+
Alternatively, you can clone the `<https://github.com/symfony/dom-crawler>`_ repository.
2223

2324
.. include:: /components/require_autoload.rst.inc
2425

components/event_dispatcher.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ event - ``kernel.response``. Here's how it works:
5252
Installation
5353
------------
5454

55-
You can install the component in 2 different ways:
55+
.. code-block:: terminal
5656
57-
* :doc:`Install it via Composer </components/using_components>`
58-
(``symfony/event-dispatcher`` on `Packagist`_);
59-
* Use the official Git repository (https://github.com/symfony/event-dispatcher).
57+
$ composer require symfony/event-dispatcher
58+
59+
Alternatively, you can clone the `<https://github.com/symfony/event-dispatcher>`_ repository.
6060

6161
.. include:: /components/require_autoload.rst.inc
6262

0 commit comments

Comments
 (0)