Skip to content

Commit e37d7e3

Browse files
committed
minor #9418 Improved the "Installation" section of components (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes #9418). Discussion ---------- Improved the "Installation" section of components The current docs were written when Composer was new. Nowadays everybody should know and use Composer ... and for those who still don't, we provide a link to the article that explains all this in detail, so I think we're good. Commits ------- 9162272 Improved the "Installation" section of components
2 parents d0ae7c3 + 9162272 commit e37d7e3

32 files changed

+141
-102
lines changed

components/asset.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ simple. Hardcoding URLs can be a disadvantage because:
4545
Installation
4646
------------
4747

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

5356
Usage
5457
-----

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
@@ -41,11 +41,11 @@ not be found by a class loader.
4141
Installation
4242
------------
4343

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

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

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
@@ -14,10 +14,11 @@ The Debug Component
1414
Installation
1515
------------
1616

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

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

components/dependency_injection.rst

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

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

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

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)