Skip to content

Commit 8440958

Browse files
committed
Merge branch '4.0' into 4.1
* 4.0: Made the testing form examples consistent Updated latest maintained version in documentation overview Remove unused var - custom auth provider example Use '[]' notation, add missing "()" update class name Fixed the params in ChoiceType methods add missing option in yaml configuration Documented the logout_on_user_change option Explain how to check if a route exists Better explain the use of multiple roles in access_control Added notes in the components doc to point to the main Symfony articles Added a small note about Webpack server and Symfony server Don't recommend base64 encoding of random_bytes result Added a missing validator example Minor tweak about enalbing the profiler in the tests Clarification on search user
2 parents 7a74476 + 62992db commit 8440958

32 files changed

+222
-34
lines changed

components/browser_kit.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ Alternatively, you can clone the `<https://github.com/symfony/browser-kit>`_ rep
2828
Basic Usage
2929
-----------
3030

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+
3137
Creating a Client
3238
~~~~~~~~~~~~~~~~~
3339

components/console.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Alternatively, you can clone the `<https://github.com/symfony/console>`_ reposit
2626
Creating a Console Application
2727
------------------------------
2828

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+
2935
First, you need to create a PHP script to define the console application::
3036

3137
#!/usr/bin/env php

components/css_selector.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Alternatively, you can clone the `<https://github.com/symfony/css-selector>`_ re
2121
Usage
2222
-----
2323

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+
2430
Why to Use CSS selectors?
2531
~~~~~~~~~~~~~~~~~~~~~~~~~
2632

components/dependency_injection.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Alternatively, you can clone the `<https://github.com/symfony/dependency-injecti
2626
Basic Usage
2727
-----------
2828

29+
.. seealso::
30+
31+
This article explains how to use the DependencyInjection features as an
32+
independent component in any PHP application. Read the :doc:`/service_container`
33+
article to learn about how to use it in Symfony applications.
34+
2935
You might have a simple class like the following ``Mailer`` that
3036
you want to make available as a service::
3137

components/dom_crawler.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Alternatively, you can clone the `<https://github.com/symfony/dom-crawler>`_ rep
2626
Usage
2727
-----
2828

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+
2935
The :class:`Symfony\\Component\\DomCrawler\\Crawler` class provides methods
3036
to query and manipulate HTML and XML documents.
3137

components/event_dispatcher.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ Alternatively, you can clone the `<https://github.com/symfony/event-dispatcher>`
6363
Usage
6464
-----
6565

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+
6672
Events
6773
~~~~~~
6874

components/form.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ Alternatively, you can clone the `<https://github.com/symfony/form>`_ repository
2727
Configuration
2828
-------------
2929

30-
.. tip::
30+
.. seealso::
3131

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.
3435

3536
In Symfony, forms are represented by objects and these objects are built
3637
by using a *form factory*. Building a form factory is simple::

components/http_foundation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ Alternatively, you can clone the `<https://github.com/symfony/http-foundation>`_
2727

2828
.. include:: /components/require_autoload.rst.inc
2929

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+
3037
.. _component-http-foundation-request:
3138

3239
Request

components/http_kernel.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ Alternatively, you can clone the `<https://github.com/symfony/http-kernel>`_ rep
2525
The Workflow of a Request
2626
-------------------------
2727

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+
2837
Every HTTP web interaction begins with a request and ends with a response.
2938
Your job as a developer is to create PHP code that reads the request information
3039
(e.g. the URL) and creates and returns a response (e.g. an HTML page or JSON string).

components/intl.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ The Intl Component
1313
The replacement layer is limited to the locale "en". If you want to use
1414
other locales, you should `install the intl extension`_ instead.
1515

16+
.. seealso::
17+
18+
This article explains how to use the Intl features as an independent component
19+
in any PHP application. Read the :doc:`/translation` article to learn about
20+
how to internationalize and manage the user locale in Symfony applications.
21+
1622
Installation
1723
------------
1824

0 commit comments

Comments
 (0)