File tree Expand file tree Collapse file tree 18 files changed +107
-3
lines changed
Filter options
Expand file tree Collapse file tree 18 files changed +107
-3
lines changed
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ Alternatively, you can clone the `<https://github.com/symfony/browser-kit>`_ rep
28
28
Basic Usage
29
29
-----------
30
30
31
+ .. seealso ::
32
+
33
+ This article explains how to use the BrowserKit features as an independent
34
+ component in any PHP application. Read the :ref: `Symfony Functional Tests <functional-tests >`
35
+ article to learn about how to use it in Symfony applications.
36
+
31
37
Creating a Client
32
38
~~~~~~~~~~~~~~~~~
33
39
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ Alternatively, you can clone the `<https://github.com/symfony/console>`_ reposit
26
26
Creating a Console Application
27
27
------------------------------
28
28
29
+ .. seealso ::
30
+
31
+ This article explains how to use the Console features as an independent
32
+ component in any PHP application. Read the :doc: `/console ` article to
33
+ learn about how to use it in Symfony applications.
34
+
29
35
First, you need to create a PHP script to define the console application::
30
36
31
37
#!/usr/bin/env php
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ Alternatively, you can clone the `<https://github.com/symfony/css-selector>`_ re
21
21
Usage
22
22
-----
23
23
24
+ .. seealso ::
25
+
26
+ This article explains how to use the CssSelector features as an independent
27
+ component in any PHP application. Read the :ref: `Symfony Functional Tests <functional-tests >`
28
+ article to learn about how to use it when creating Symfony tests.
29
+
24
30
Why to Use CSS selectors?
25
31
~~~~~~~~~~~~~~~~~~~~~~~~~
26
32
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ Alternatively, you can clone the `<https://github.com/symfony/dependency-injecti
25
25
Basic Usage
26
26
-----------
27
27
28
+ .. seealso ::
29
+
30
+ This article explains how to use the DependencyInjection features as an
31
+ independent component in any PHP application. Read the :doc: `/service_container `
32
+ article to learn about how to use it in Symfony applications.
33
+
28
34
You might have a simple class like the following ``Mailer `` that
29
35
you want to make available as a service::
30
36
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ Alternatively, you can clone the `<https://github.com/symfony/dom-crawler>`_ rep
26
26
Usage
27
27
-----
28
28
29
+ .. seealso ::
30
+
31
+ This article explains how to use the DomCrawler features as an independent
32
+ component in any PHP application. Read the :ref: `Symfony Functional Tests <functional-tests >`
33
+ article to learn about how to use it when creating Symfony tests.
34
+
29
35
The :class: `Symfony\\ Component\\ DomCrawler\\ Crawler ` class provides methods
30
36
to query and manipulate HTML and XML documents.
31
37
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ Alternatively, you can clone the `<https://github.com/symfony/event-dispatcher>`
63
63
Usage
64
64
-----
65
65
66
+ .. seealso ::
67
+
68
+ This article explains how to use the EventDispatcher features as an
69
+ independent component in any PHP application. Read the :doc: `/event_dispatcher `
70
+ article to learn about how to use it in Symfony applications.
71
+
66
72
Events
67
73
~~~~~~
68
74
Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ Alternatively, you can clone the `<https://github.com/symfony/form>`_ repository
27
27
Configuration
28
28
-------------
29
29
30
- .. tip ::
30
+ .. seealso ::
31
31
32
- If you are working with the full-stack Symfony Framework, the Form component
33
- is already configured for you. In this case, skip to :ref: `component-form-intro-create-simple-form `.
32
+ This article explains how to use the Form features as an independent
33
+ component in any PHP application. Read the :doc: `/forms ` article to learn
34
+ about how to use it in Symfony applications.
34
35
35
36
In Symfony, forms are represented by objects and these objects are built
36
37
by using a *form factory *. Building a form factory is simple::
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ Alternatively, you can clone the `<https://github.com/symfony/http-foundation>`_
27
27
28
28
.. include :: /components/require_autoload.rst.inc
29
29
30
+ .. seealso ::
31
+
32
+ This article explains how to use the HttpFoundation features as an
33
+ independent component in any PHP application. In Symfony applications
34
+ everything is already configured and ready to use. Read the :doc: `/controller `
35
+ article to learn about how to use these features when creating controllers.
36
+
30
37
.. _component-http-foundation-request :
31
38
32
39
Request
Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ Alternatively, you can clone the `<https://github.com/symfony/http-kernel>`_ rep
25
25
The Workflow of a Request
26
26
-------------------------
27
27
28
+ .. seealso ::
29
+
30
+ This article explains how to use the HttpKernel features as an independent
31
+ component in any PHP application. In Symfony applications everything is
32
+ already configured and ready to use. Read the :doc: `/controller ` and
33
+ :doc: `/event_dispatcher ` articles to learn about how to use it to create
34
+ controllers and define events in Symfony applications.
35
+
36
+
28
37
Every HTTP web interaction begins with a request and ends with a response.
29
38
Your job as a developer is to create PHP code that reads the request information
30
39
(e.g. the URL) and creates and returns a response (e.g. an HTML page or JSON string).
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ The Intl Component
17
17
The replacement layer is limited to the locale "en". If you want to use
18
18
other locales, you should `install the intl extension `_ instead.
19
19
20
+ .. seealso ::
21
+
22
+ This article explains how to use the Intl features as an independent component
23
+ in any PHP application. Read the :doc: `/translation ` article to learn about
24
+ how to internationalize and manage the user locale in Symfony applications.
25
+
20
26
Installation
21
27
------------
22
28
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ Alternatively, you can clone the `<https://github.com/symfony/phpunit-bridge>`_
45
45
Usage
46
46
-----
47
47
48
+ .. seealso ::
49
+
50
+ This article explains how to use the PhpUnitBridge features as an independent
51
+ component in any PHP application. Read the :doc: `/testing ` article to learn
52
+ about how to use it in Symfony applications.
53
+
48
54
Once the component is installed, a ``simple-phpunit `` script is created in the
49
55
``vendor/ `` directory to run tests. This script wraps the original PHPUnit binary
50
56
to provide more features:
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ Alternatively, you can clone the `<https://github.com/symfony/routing>`_ reposit
22
22
Usage
23
23
-----
24
24
25
+ .. seealso ::
26
+
27
+ This article explains how to use the Routing features as an independent
28
+ component in any PHP application. Read the :doc: `/routing ` article to learn
29
+ about how to use it in Symfony applications.
30
+
25
31
In order to set up a basic routing system you need three parts:
26
32
27
33
* A :class: `Symfony\\ Component\\ Routing\\ RouteCollection `, which contains the route definitions (instances of the class :class: `Symfony\\ Component\\ Routing\\ Route `)
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ used separately:
39
39
``symfony/security-acl ``
40
40
It provides a fine grained permissions mechanism based on Access Control Lists.
41
41
42
+ .. seealso ::
43
+
44
+ This article explains how to use the Security features as an independent
45
+ component in any PHP application. Read the :doc: `/security ` article to learn
46
+ about how to use it in Symfony applications.
47
+
42
48
Learn More
43
49
----------
44
50
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ must also be installed.
41
41
Usage
42
42
-----
43
43
44
+ .. seealso ::
45
+
46
+ This article explains how to use the Serializer features as an independent
47
+ component in any PHP application. Read the :doc: `/serializer ` article to
48
+ learn about how to use it in Symfony applications.
49
+
44
50
Using the Serializer component is really simple. You just need to set up
45
51
the :class: `Symfony\\ Component\\ Serializer\\ Serializer ` specifying
46
52
which encoders and normalizer are going to be available::
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ Alternatively, you can clone the `<https://github.com/symfony/templating>`_ repo
27
27
Usage
28
28
-----
29
29
30
+ .. seealso ::
31
+
32
+ This article explains how to use the Templating features as an independent
33
+ component in any PHP application. Read the :doc: `/templating ` article to
34
+ learn about how to work with templates in Symfony applications.
35
+
30
36
The :class: `Symfony\\ Component\\ Templating\\ PhpEngine ` class is the entry point
31
37
of the component. It needs a
32
38
template name parser (:class: `Symfony\\ Component\\ Templating\\ TemplateNameParserInterface `)
Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ Alternatively, you can clone the `<https://github.com/symfony/translation>`_ rep
19
19
20
20
.. include :: /components/require_autoload.rst.inc
21
21
22
+ .. seealso ::
23
+
24
+ This article explains how to use the Translation features as an independent
25
+ component in any PHP application. Read the :doc: `/translation ` article to
26
+ learn about how to internationalize and manage the user locale in Symfony
27
+ applications.
28
+
22
29
Constructing the Translator
23
30
---------------------------
24
31
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ Alternatively, you can clone the `<https://github.com/symfony/validator>`_ repos
22
22
Usage
23
23
-----
24
24
25
+ .. seealso ::
26
+
27
+ This article explains how to use the Validator features as an independent
28
+ component in any PHP application. Read the :doc: `/validation ` article to
29
+ learn about how to validate data and entities in Symfony applications.
30
+
25
31
The Validator component behavior is based on two concepts:
26
32
27
33
* Constraints, which define the rules to be validated;
Original file line number Diff line number Diff line change @@ -116,6 +116,8 @@ Running tests for a given file or directory is also very easy:
116
116
.. index ::
117
117
single: Tests; Functional tests
118
118
119
+ .. _functional-tests :
120
+
119
121
Functional Tests
120
122
----------------
121
123
You can’t perform that action at this time.
0 commit comments