Skip to content

Commit 202c939

Browse files
committed
Merge branch '4.0' into 4.1
* 4.0: Image to console Show console table examples in a console terminal Merged the output of another command with its command line Showed the output of the command in the same CLI window Fixed some wrong examples about service config Replace entry/section by "article" Remove occurrences of "performant"
2 parents 8b38882 + 555a5fb commit 202c939

24 files changed

+80
-67
lines changed

_images/components/console/table.png

-65.9 KB
Binary file not shown.
-46.6 KB
Binary file not shown.

components/cache/adapters/php_array_cache_adapter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Php Array Cache Adapter
66
=======================
77

8-
This adapter is a highly performant way to cache static data (e.g. application configuration)
8+
This adapter is a high performance cache for static data (e.g. application configuration)
99
that is optimized and preloaded into OPcache memory storage::
1010

1111
use Symfony\Component\Cache\Adapter\PhpArrayAdapter;

components/console/helpers/table.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Table
66

77
When building a console application it may be useful to display tabular data:
88

9-
.. code-block:: text
9+
.. code-block:: terminal
1010
1111
+---------------+--------------------------+------------------+
1212
| ISBN | Title | Author |
@@ -54,7 +54,7 @@ You can add a table separator anywhere in the output by passing an instance of
5454
array('80-902734-1-6', 'And Then There Were None', 'Agatha Christie'),
5555
));
5656

57-
.. code-block:: text
57+
.. code-block:: terminal
5858
5959
+---------------+--------------------------+------------------+
6060
| ISBN | Title | Author |
@@ -78,7 +78,7 @@ In this example, the first column width will be ``10``, the last column width
7878
will be ``30`` and the second column width will be calculated automatically
7979
because of the ``0`` value. The output of this command will be:
8080

81-
.. code-block:: text
81+
.. code-block:: terminal
8282
8383
+---------------+--------------------------+--------------------------------+
8484
| ISBN | Title | Author |
@@ -117,7 +117,7 @@ The table style can be changed to any built-in styles via
117117

118118
This code results in:
119119

120-
.. code-block:: text
120+
.. code-block:: terminal
121121
122122
ISBN Title Author
123123
99921-58-10-7 Divine Comedy Dante Alighieri
@@ -132,7 +132,7 @@ You can also set the style to ``borderless``::
132132

133133
which outputs:
134134

135-
.. code-block:: text
135+
.. code-block:: terminal
136136
137137
=============== ========================== ==================
138138
ISBN Title Author
@@ -259,7 +259,7 @@ To make a table cell that spans multiple columns you can use a :class:`Symfony\\
259259

260260
This results in:
261261

262-
.. code-block:: text
262+
.. code-block:: terminal
263263
264264
+---------------+---------------+-----------------+
265265
| ISBN | Title | Author |
@@ -282,7 +282,7 @@ This results in:
282282

283283
This generates:
284284

285-
.. code-block:: text
285+
.. code-block:: terminal
286286
287287
+-------+-------+--------+
288288
| Main table title |
@@ -313,7 +313,7 @@ In a similar way you can span multiple rows::
313313

314314
This outputs:
315315

316-
.. code-block:: text
316+
.. code-block:: terminal
317317
318318
+----------------+---------------+---------------------+
319319
| ISBN | Title | Author |

components/http_foundation/session_configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Configuring Sessions and Save Handlers
66
======================================
77

8-
This section deals with how to configure session management and fine tune it
8+
This article deals with how to configure session management and fine tune it
99
to your specific needs. This documentation covers save handlers, which
1010
store and retrieve session data, and configuring session behavior.
1111

components/phpunit_bridge.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,23 @@ to provide more features:
7979
8080
After running your PHPUnit tests, you will get a report similar to this one:
8181

82-
.. image:: /_images/components/phpunit_bridge/report.png
82+
.. code-block:: terminal
83+
84+
$ ./vendor/bin/simple-phpunit
85+
PHPUnit by Sebastian Bergmann.
86+
87+
Configuration read from <your-project>/phpunit.xml.dist
88+
.................
89+
90+
Time: 1.77 seconds, Memory: 5.75Mb
91+
92+
OK (17 tests, 21 assertions)
93+
94+
Remaining deprecation notices (2)
95+
96+
getEntityManager is deprecated since Symfony 2.1. Use getManager instead: 2x
97+
1x in DefaultControllerTest::testPublicUrls from App\Tests\Controller
98+
1x in BlogControllerTest::testIndex from App\Tests\Controller
8399
84100
The summary includes:
85101

components/security/firewall.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ certain action or resource of the application::
3636

3737
.. note::
3838

39-
Read the dedicated sections to learn more about :doc:`/components/security/authentication`
39+
Read the dedicated articles to learn more about :doc:`/components/security/authentication`
4040
and :doc:`/components/security/authorization`.
4141

4242
.. _firewall:
@@ -160,5 +160,5 @@ context works:
160160
#. Once a user is authenticated, you'll use :doc:`/components/security/authorization`
161161
to deny access to certain resources.
162162

163-
Read the next sections to find out more about :doc:`/components/security/authentication`
163+
Read the next articles to find out more about :doc:`/components/security/authentication`
164164
and :doc:`/components/security/authorization`.

deployment.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ setup:
195195
Application Lifecycle: Continuous Integration, QA, etc.
196196
-------------------------------------------------------
197197

198-
While this entry covers the technical details of deploying, the full lifecycle
198+
While this article covers the technical details of deploying, the full lifecycle
199199
of taking code from development up to production may have more steps:
200200
deploying to staging, QA (Quality Assurance), running tests, etc.
201201

doctrine/event_listeners_subscribers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ to the tag like so:
236236
.. note::
237237

238238
  Marking an event listener as ``lazy`` has nothing to do with lazy service
239-
definitions which are described :doc:`in their own section </service_container/lazy_services>`
239+
definitions which are described :doc:`in their own article </service_container/lazy_services>`
240240

241241
.. _`The Event System`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html
242242
.. _`the Doctrine Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#entity-listeners

form/dynamic_form_modification.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
How to Dynamically Modify Forms Using Form Events
55
=================================================
66

7-
Often times, a form can't be created statically. In this entry, you'll learn
7+
Often times, a form can't be created statically. In this article, you'll learn
88
how to customize your form based on three common use-cases:
99

1010
1) :ref:`form-events-underlying-data`
@@ -74,7 +74,7 @@ Suppose now, that you don't want the user to be able to change the ``name`` valu
7474
once the object has been created. To do this, you can rely on Symfony's
7575
:doc:`EventDispatcher component </components/event_dispatcher>`
7676
system to analyze the data on the object and modify the form based on the
77-
Product object's data. In this entry, you'll learn how to add this level of
77+
Product object's data. In this article, you'll learn how to add this level of
7878
flexibility to your forms.
7979

8080
Adding an Event Listener to a Form Class

0 commit comments

Comments
 (0)