File tree Expand file tree Collapse file tree 32 files changed +141
-102
lines changed Expand file tree Collapse file tree 32 files changed +141
-102
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,13 @@ simple. Hardcoding URLs can be a disadvantage because:
45
45
Installation
46
46
------------
47
47
48
- You can install the component in two different ways:
48
+ .. code-block :: terminal
49
49
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
52
55
53
56
Usage
54
57
-----
Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ The BrowserKit Component
17
17
Installation
18
18
------------
19
19
20
- You can install the component in two different ways:
20
+ .. code-block :: terminal
21
21
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
25
27
26
28
Basic Usage
27
29
-----------
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ not be found by a class loader.
41
41
Installation
42
42
------------
43
43
44
- You can install the component in 2 different ways:
44
+ .. code-block :: terminal
45
45
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 .
49
49
50
50
.. include :: /components/require_autoload.rst.inc
51
51
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ The Config Component
12
12
Installation
13
13
------------
14
14
15
- You can install the component in 2 different ways:
15
+ .. code-block :: terminal
16
16
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 .
20
20
21
21
.. include :: /components/require_autoload.rst.inc
22
22
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ other batch jobs.
15
15
Installation
16
16
------------
17
17
18
- You can install the component in 2 different ways:
18
+ .. code-block :: terminal
19
19
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.
22
23
23
24
.. include :: /components/require_autoload.rst.inc
24
25
Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ The CssSelector Component
10
10
Installation
11
11
------------
12
12
13
- You can install the component in 2 different ways:
13
+ .. code-block :: terminal
14
14
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.
17
18
18
19
.. include :: /components/require_autoload.rst.inc
19
20
Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ The Debug Component
14
14
Installation
15
15
------------
16
16
17
- You can install the component in many different ways:
17
+ .. code-block :: terminal
18
18
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.
21
22
22
23
.. include :: /components/require_autoload.rst.inc
23
24
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ For an introduction to Dependency Injection and service containers see
14
14
Installation
15
15
------------
16
16
17
- You can install the component in 2 different ways:
17
+ .. code-block :: terminal
18
18
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 .
22
22
23
23
.. include :: /components/require_autoload.rst.inc
24
24
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ The DomCrawler Component
15
15
Installation
16
16
------------
17
17
18
- You can install the component in 2 different ways:
18
+ .. code-block :: terminal
19
19
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.
22
23
23
24
.. include :: /components/require_autoload.rst.inc
24
25
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ event - ``kernel.response``. Here's how it works:
52
52
Installation
53
53
------------
54
54
55
- You can install the component in 2 different ways:
55
+ .. code-block :: terminal
56
56
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 .
60
60
61
61
.. include :: /components/require_autoload.rst.inc
62
62
Original file line number Diff line number Diff line change @@ -12,10 +12,13 @@ The ExpressionLanguage Component
12
12
Installation
13
13
------------
14
14
15
- You can install the component in 2 different ways:
15
+ .. code-block :: terminal
16
16
17
- * :doc: `Install it via Composer </components/using_components >` (``symfony/expression-language `` on `Packagist `_);
18
- * Use the official Git repository (https://github.com/symfony/expression-language).
17
+ $ composer require symfony/expression-language
18
+
19
+ Alternatively, you can clone the `<https://github.com/symfony/expression-language >`_ repository.
20
+
21
+ .. include :: /components/require_autoload.rst.inc
19
22
20
23
How can the Expression Engine Help Me?
21
24
--------------------------------------
Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ The Filesystem Component
14
14
Installation
15
15
------------
16
16
17
- You can install the component in 2 different ways:
17
+ .. code-block :: terminal
18
18
19
- * :doc: `Install it via Composer </components/using_components >` (``symfony/filesystem `` on `Packagist `_);
20
- * Use the official Git repository (https://github.com/symfony/filesystem).
19
+ $ composer require symfony/filesystem
20
+
21
+ Alternatively, you can clone the `<https://github.com/symfony/filesystem >`_ repository.
21
22
22
23
.. include :: /components/require_autoload.rst.inc
23
24
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ The Finder Component
11
11
Installation
12
12
------------
13
13
14
- You can install the component in 2 different ways:
14
+ .. code-block :: terminal
15
15
16
- * :doc: `Install it via Composer </components/using_components >` (``symfony/finder `` on `Packagist `_);
17
- * Use the official Git repository (https://github.com/symfony/finder).
16
+ $ composer require symfony/finder
17
+
18
+ Alternatively, you can clone the `<https://github.com/symfony/finder >`_ repository.
18
19
19
20
.. include :: /components/require_autoload.rst.inc
20
21
Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ be from a normal form post or from an API.
16
16
Installation
17
17
------------
18
18
19
- You can install the component in 2 different ways:
19
+ .. code-block :: terminal
20
+
21
+ $ composer require symfony/form
20
22
21
- * :doc: `Install it via Composer </components/using_components >` (``symfony/form `` on `Packagist `_);
22
- * Use the official Git repository (https://github.com/symfony/form).
23
+ Alternatively, you can clone the `<https://github.com/symfony/form >`_ repository.
23
24
24
25
.. include :: /components/require_autoload.rst.inc
25
26
Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ variables and functions by an object-oriented layer.
19
19
Installation
20
20
------------
21
21
22
- You can install the component in 2 different ways:
22
+ .. code-block :: terminal
23
23
24
- * :doc: `Install it via Composer </components/using_components >` (``symfony/http-foundation `` on `Packagist `_);
25
- * Use the official Git repository (https://github.com/symfony/http-foundation).
24
+ $ composer require symfony/http-foundation
25
+
26
+ Alternatively, you can clone the `<https://github.com/symfony/http-foundation >`_ repository.
26
27
27
28
.. include :: /components/require_autoload.rst.inc
28
29
Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ The HttpKernel Component
14
14
Installation
15
15
------------
16
16
17
- You can install the component in 2 different ways:
17
+ .. code-block :: terminal
18
18
19
- * :doc: `Install it via Composer </components/using_components >` (``symfony/http-kernel `` on Packagist _);
20
- * Use the official Git repository (https://github.com/symfony/http-kernel).
19
+ $ composer require symfony/http-kernel
20
+
21
+ Alternatively, you can clone the `<https://github.com/symfony/http-kernel >`_ repository.
21
22
22
23
.. include :: /components/require_autoload.rst.inc
23
24
Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ The Intl Component
20
20
Installation
21
21
------------
22
22
23
- You can install the component in two different ways:
23
+ .. code-block :: terminal
24
24
25
- * :doc: `Install it via Composer</components/using_components> ` (``symfony/intl `` on `Packagist `_);
26
- * Using the official Git repository (https://github.com/symfony/intl).
25
+ $ composer require symfony/intl
26
+
27
+ Alternatively, you can clone the `<https://github.com/symfony/intl >`_ repository.
28
+
29
+ .. include :: /components/require_autoload.rst.inc
27
30
28
31
If you install the component via Composer, the following classes and functions
29
32
of the intl extension will be automatically provided if the intl extension is
Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ The OptionsResolver Component
12
12
Installation
13
13
------------
14
14
15
- You can install the component in 2 different ways:
15
+ .. code-block :: terminal
16
16
17
- * :doc: `Install it via Composer </components/using_components >` (``symfony/options-resolver `` on `Packagist `_);
18
- * Use the official Git repository (https://github.com/symfony/options-resolver).
17
+ $ composer require symfony/options-resolver
18
+
19
+ Alternatively, you can clone the `<https://github.com/symfony/options-resolver >`_ repository.
19
20
20
21
.. include :: /components/require_autoload.rst.inc
21
22
Original file line number Diff line number Diff line change @@ -25,12 +25,11 @@ It comes with the following features:
25
25
Installation
26
26
------------
27
27
28
- You can install the component in 2 different ways:
28
+ .. code-block :: terminal
29
29
30
- * :doc: `Install it via Composer </components/using_components >`
31
- (``symfony/phpunit-bridge `` on `Packagist `_); as a dev dependency;
30
+ $ composer require symfony/phpunit-bridge
32
31
33
- * Use the official Git repository ( https://github.com/symfony/phpunit-bridge) .
32
+ Alternatively, you can clone the `< https://github.com/symfony/phpunit-bridge >`_ repository .
34
33
35
34
.. include :: /components/require_autoload.rst.inc
36
35
Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ The Process Component
10
10
Installation
11
11
------------
12
12
13
- You can install the component in 2 different ways:
13
+ .. code-block :: terminal
14
14
15
- * :doc: `Install it via Composer </components/using_components >` (``symfony/process `` on `Packagist `_);
16
- * Use the official Git repository (https://github.com/symfony/process).
15
+ $ composer require symfony/process
16
+
17
+ Alternatively, you can clone the `<https://github.com/symfony/process >`_ repository.
17
18
18
19
.. include :: /components/require_autoload.rst.inc
19
20
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ The PropertyAccess Component
11
11
Installation
12
12
------------
13
13
14
- You can install the component in two different ways:
14
+ .. code-block :: terminal
15
15
16
- * :doc: `Install it via Composer</components/using_components> ` (``symfony/property-access `` on `Packagist `_);
17
- * Use the official Git repository (https://github.com/symfony/property-access).
16
+ $ composer require symfony/property-access
17
+
18
+ Alternatively, you can clone the `<https://github.com/symfony/property-access >`_ repository.
18
19
19
20
.. include :: /components/require_autoload.rst.inc
20
21
Original file line number Diff line number Diff line change @@ -11,10 +11,13 @@ The PSR-7 Bridge
11
11
Installation
12
12
------------
13
13
14
- You can install the component in 2 different ways:
14
+ .. code-block :: terminal
15
15
16
- * :doc: `Install it via Composer </components/using_components >` (`symfony/psr-http-message-bridge on Packagist `_);
17
- * Use the official Git repository (https://github.com/symfony/psr-http-message-bridge).
16
+ $ composer require symfony/psr-http-message-bridge
17
+
18
+ Alternatively, you can clone the `<https://github.com/symfony/psr-http-message-bridge >`_ repository.
19
+
20
+ .. include :: /components/require_autoload.rst.inc
18
21
19
22
The bridge also needs a PSR-7 implementation to allow converting HttpFoundation
20
23
objects to PSR-7 objects. It provides native support for `Zend Diactoros `_.
Original file line number Diff line number Diff line change 1
- Then, require the ``vendor/autoload.php`` file to enable the autoloading mechanism
2
- provided by Composer. Otherwise, your application won't be able to find the classes
3
- of this Symfony component.
1
+ .. note::
2
+
3
+ If you install this component outside of a Symfony application, you must
4
+ require the ``vendor/autoload.php`` file in your code to enable the class
5
+ autoloading mechanism provided by Composer. Read
6
+ :doc:`this article </ components/using_components> ` for more details.
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ The Routing Component
11
11
Installation
12
12
------------
13
13
14
- You can install the component in 2 different ways:
14
+ .. code-block :: terminal
15
15
16
- * :doc: `Install it via Composer </components/using_components >` (``symfony/routing `` on `Packagist `_);
17
- * Use the official Git repository (https://github.com/symfony/routing).
16
+ $ composer require symfony/routing
17
+
18
+ Alternatively, you can clone the `<https://github.com/symfony/routing >`_ repository.
18
19
19
20
.. include :: /components/require_autoload.rst.inc
20
21
Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ The Security Component
14
14
Installation
15
15
------------
16
16
17
- You can install the component in 2 different ways:
17
+ .. code-block :: terminal
18
18
19
- * :doc: `Install it via Composer </components/using_components >` (``symfony/security `` on Packagist _);
20
- * Use the official Git repository (https://github.com/symfony/security).
19
+ $ composer require symfony/security
20
+
21
+ Alternatively, you can clone the `<https://github.com/symfony/security >`_ repository.
21
22
22
23
.. include :: /components/require_autoload.rst.inc
23
24
You can’t perform that action at this time.
0 commit comments